Skip to content

Commit 777eb60

Browse files
fix: replace version pin to sha
1 parent f28acc2 commit 777eb60

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

.github/workflows/docker-build.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ jobs:
2222
permissions:
2323
contents: read
2424
steps:
25-
- uses: actions/checkout@v6
25+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2626

27-
- uses: actions/setup-python@v6
27+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2828
with:
2929
python-version: "3.13"
3030
cache: pip
@@ -39,11 +39,11 @@ jobs:
3939
release:
4040
name: Release
4141
needs: [test]
42-
# Only run on direct pushes to main (not on pull requests)
4342
if: github.event_name != 'pull_request'
4443
runs-on: ubuntu-latest
4544
permissions:
4645
attestations: write
46+
artifact-metadata: write
4747
contents: write
4848
id-token: write
4949
issues: write
@@ -52,13 +52,13 @@ jobs:
5252

5353
steps:
5454
- name: Checkout
55-
uses: actions/checkout@v6
55+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5656
with:
5757
fetch-depth: 0
5858

5959
- name: Semantic Release
6060
id: semantic
61-
uses: cycjimmy/semantic-release-action@v6
61+
uses: cycjimmy/semantic-release-action@b12c8f6015dc215fe37bc154d4ad456dd3833c90 # v6.0.0
6262
with:
6363
tag_format: 'v${version}'
6464
extra_plugins: |
@@ -70,13 +70,13 @@ jobs:
7070
- name: Set Docker metadata
7171
id: meta
7272
if: steps.semantic.outputs.new_release_published == 'true'
73-
uses: docker/metadata-action@v6
73+
uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf # v6.0.0
7474
with:
7575
images: |
7676
${{ env.DOCKERHUB_USER }}/${{ env.DOCKERHUB_REPO }}
7777
${{ env.GHCR_REGISTRY }}/${{ env.GHCR_REPO }}
7878
labels: |
79-
org.opencontainers.image.maintainer=amartingarcia,ialejandro'
79+
org.opencontainers.image.maintainer='amartingarcia,ialejandro'
8080
org.opencontainers.image.title='PR Generator'
8181
org.opencontainers.image.description='PR Generator to automate pull request management'
8282
org.opencontainers.image.vendor='devops-ia'
@@ -85,15 +85,15 @@ jobs:
8585
8686
- name: Set up QEMU
8787
if: steps.semantic.outputs.new_release_published == 'true'
88-
uses: docker/setup-qemu-action@v4
88+
uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a # v4.0.0
8989

9090
- name: Set up Docker Buildx
9191
if: steps.semantic.outputs.new_release_published == 'true'
92-
uses: docker/setup-buildx-action@v4
92+
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
9393

9494
- name: Cache Docker layers
9595
if: steps.semantic.outputs.new_release_published == 'true'
96-
uses: actions/cache@v5
96+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
9797
with:
9898
path: /tmp/.buildx-cache
9999
key: ${{ runner.os }}-buildx-${{ github.sha }}
@@ -102,14 +102,14 @@ jobs:
102102
103103
- name: "[DOCKERHUB] Log in"
104104
if: steps.semantic.outputs.new_release_published == 'true'
105-
uses: docker/login-action@v4
105+
uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0
106106
with:
107107
username: ${{ secrets.DOCKERHUB_USERNAME }}
108108
password: ${{ secrets.DOCKERHUB_PASSWORD }}
109109

110110
- name: "[GHCR] Log in"
111111
if: steps.semantic.outputs.new_release_published == 'true'
112-
uses: docker/login-action@v4
112+
uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0
113113
with:
114114
registry: ${{ env.GHCR_REGISTRY }}
115115
username: ${{ github.actor }}
@@ -118,7 +118,7 @@ jobs:
118118
- name: Build and push Docker image
119119
id: push
120120
if: steps.semantic.outputs.new_release_published == 'true'
121-
uses: docker/build-push-action@v7
121+
uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7.0.0
122122
with:
123123
cache-from: type=local,src=/tmp/.buildx-cache
124124
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
@@ -131,15 +131,15 @@ jobs:
131131

132132
- name: "[DOCKERHUB] Update registry description"
133133
if: steps.semantic.outputs.new_release_published == 'true'
134-
uses: peter-evans/dockerhub-description@v5
134+
uses: peter-evans/dockerhub-description@1b9a80c056b620d92cedb9d9b5a223409c68ddfa # v5.0.0
135135
with:
136136
username: ${{ secrets.DOCKERHUB_USERNAME }}
137137
password: ${{ secrets.DOCKERHUB_PASSWORD }}
138138
repository: ${{ env.DOCKERHUB_USER }}/${{ env.DOCKERHUB_REPO }}
139139

140140
- name: "[GHCR] Generate artifact attestation"
141141
if: steps.semantic.outputs.new_release_published == 'true'
142-
uses: actions/attest-build-provenance@v4
142+
uses: actions/attest@59d89421af93a897026c735860bf21b6eb4f7b26 # v4.1.0
143143
with:
144144
subject-name: ${{ env.GHCR_REGISTRY }}/${{ env.GHCR_REPO }}
145145
subject-digest: ${{ steps.push.outputs.digest }}

0 commit comments

Comments
 (0)