1212
1313jobs :
1414 build :
15- environment : cd-env
15+ environment : release
1616 runs-on : ubuntu-latest
1717 strategy :
1818 matrix :
@@ -24,18 +24,14 @@ jobs:
2424 id-token : write
2525
2626 steps :
27- - uses : actions/checkout@v6
28-
29- - name : Set up Python ${{ matrix.python-version }}
30- uses : actions/setup-python@v6
27+ - uses : actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
28+ - name : Install uv
29+ uses : astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
3130 with :
3231 python-version : ${{ matrix.python-version }}
3332
3433 - name : Install dependencies
35- run : |
36- python -m pip install --upgrade pip
37- pip install uv
38- uv sync
34+ run : uv sync --all-groups
3935
4036 - name : Build and publish Package
4137 env :
@@ -48,15 +44,15 @@ jobs:
4844
4945 # Build and push Docker image
5046 - name : Log in to the Container registry
51- uses : docker/login-action@v5
47+ uses : docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
5248 with :
5349 registry : ${{ env.REGISTRY }}
5450 username : ${{ github.actor }}
5551 password : ${{ secrets.GITHUB_TOKEN }}
5652
5753 - name : Docker metadata
5854 id : meta
59- uses : docker/metadata-action@v6
55+ uses : docker/metadata-action@80c7e94dd9b9319bd5eb7a0e0fe9291e23a2a2e9 # v6.1.0
6056 with :
6157 images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
6258 tags : |
@@ -65,15 +61,15 @@ jobs:
6561
6662 - name : Build and push Docker image
6763 id : push
68- uses : docker/build-push-action@v7
64+ uses : docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.0
6965 with :
7066 context : .
7167 push : true
7268 tags : ${{ steps.meta.outputs.tags }}
7369 labels : ${{ steps.meta.outputs.labels }}
7470
7571 - name : Generate artifact attestation
76- uses : actions/attest-build-provenance@v4
72+ uses : actions/attest-build-provenance@a2bbfa25375fe432b6a289bc6b6cd05ecd0c4c32 # v4.1.0
7773 with :
7874 subject-name : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
7975 subject-digest : ${{ steps.push.outputs.digest }}
0 commit comments