Skip to content

Commit f3529cc

Browse files
chore(ci): pin all actions to hash, comment w/ver & rel link (#95)
1 parent 9e94a01 commit f3529cc

File tree

5 files changed

+29
-29
lines changed

5 files changed

+29
-29
lines changed

.github/workflows/ci-docker.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ jobs:
2121
arch: amd64
2222
runs-on: ${{ matrix.os }}
2323
steps:
24-
- uses: actions/checkout@v4
24+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 https://github.com/actions/checkout/releases/tag/v4.3.0
2525
with:
2626
fetch-depth: '0'
27-
- uses: docker/setup-buildx-action@v3
27+
- uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1 https://github.com/docker/setup-buildx-action/releases/tag/v3.11.1
2828
- id: meta
29-
uses: docker/metadata-action@v5
29+
uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0 https://github.com/docker/metadata-action/releases/tag/v5.8.0
3030
with:
3131
images: ${{ env.GHCR_IMAGE_NAME }}
3232
- name: build
33-
uses: docker/build-push-action@v6
33+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0 https://github.com/docker/build-push-action/releases/tag/v6.18.0
3434
with:
3535
context: .
3636
push: false

.github/workflows/conventional-commits.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ jobs:
1313
permissions:
1414
contents: read
1515
steps:
16-
- uses: actions/checkout@v4
17-
- uses: webiny/[email protected]
16+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 https://github.com/actions/checkout/releases/tag/v4.3.0
17+
- uses: webiny/action-conventional-commits@8bc41ff4e7d423d56fa4905f6ff79209a78776c7 # v1.3.0 https://github.com/webiny/action-conventional-commits/releases/tag/v1.3.0

.github/workflows/go-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ jobs:
2020
platform: [ubuntu-latest]
2121
runs-on: ${{ matrix.platform }}
2222
steps:
23-
- uses: actions/checkout@v4
24-
- uses: actions/setup-go@v5
23+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 https://github.com/actions/checkout/releases/tag/v4.3.0
24+
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 https://github.com/actions/setup-go/releases/tag/v5.5.0
2525
with:
2626
go-version: ${{ matrix.go-version }}
2727
- name: go-test

.github/workflows/golangci-lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515
name: lint
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v4
19-
- uses: actions/setup-go@v5
18+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 https://github.com/actions/checkout/releases/tag/v4.3.0
19+
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 https://github.com/actions/setup-go/releases/tag/v5.5.0
2020
with:
2121
go-version: 1.23.x
2222
- name: golangci-lint
23-
uses: golangci/golangci-lint-action@v8
23+
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0 https://github.com/golangci/golangci-lint-action/releases/tag/v8.0.0

.github/workflows/publish.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
RELEASE_ID: ${{ steps.create-release.outputs.result }}
1818
steps:
1919
- run: "echo \"RELEASE_TAG=${GITHUB_REF#refs/tags/}\" >> $GITHUB_ENV"
20-
- uses: actions/github-script@v7
20+
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 https://github.com/actions/github-script/releases/tag/v7.0.1
2121
id: create-release
2222
if: startsWith(github.ref, 'refs/tags/')
2323
with:
@@ -57,10 +57,10 @@ jobs:
5757
statuses: write
5858
steps:
5959
- run: "echo \"RELEASE_TAG=${GITHUB_REF#refs/tags/}\" >> $GITHUB_ENV"
60-
- uses: actions/checkout@v4
60+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 https://github.com/actions/checkout/releases/tag/v4.3.0
6161
with:
6262
fetch-depth: '0'
63-
- uses: actions/setup-go@v5
63+
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 https://github.com/actions/setup-go/releases/tag/v5.5.0
6464
with:
6565
go-version: 1.23.x
6666
- name: Build binary
@@ -79,7 +79,7 @@ jobs:
7979
--data-binary @${_filename} \
8080
https://uploads.github.com/repos/${{ github.repository_owner }}/vpn-indexer/releases/${{ needs.create-draft-release.outputs.RELEASE_ID }}/assets?name=${_filename}
8181
- name: Attest binary
82-
uses: actions/attest-build-provenance@v2
82+
uses: actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be # v2.4.0 https://github.com/actions/attest-build-provenance/releases/tag/v2.4.0
8383
with:
8484
subject-path: 'vpn-indexer'
8585

@@ -104,24 +104,24 @@ jobs:
104104
runs-on: ${{ matrix.os }}
105105
steps:
106106
- run: "echo \"RELEASE_TAG=${GITHUB_REF#refs/tags/}\" >> $GITHUB_ENV"
107-
- uses: actions/checkout@v4
107+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 https://github.com/actions/checkout/releases/tag/v4.3.0
108108
with:
109109
fetch-depth: '0'
110110
- name: Set up Docker Buildx
111-
uses: docker/setup-buildx-action@v3
111+
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1 https://github.com/docker/setup-buildx-action/releases/tag/v3.11.1
112112
- name: Login to Docker Hub
113-
uses: docker/login-action@v3
113+
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0 https://github.com/docker/login-action/releases/tag/v3.5.0
114114
with:
115115
username: blinklabs
116116
password: ${{ secrets.DOCKER_PASSWORD }} # uses token
117117
- name: Login to GHCR
118-
uses: docker/login-action@v3
118+
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0 https://github.com/docker/login-action/releases/tag/v3.5.0
119119
with:
120120
username: ${{ github.repository_owner }}
121121
password: ${{ secrets.GITHUB_TOKEN }}
122122
registry: ghcr.io
123123
- id: meta
124-
uses: docker/metadata-action@v5
124+
uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0 https://github.com/docker/metadata-action/releases/tag/v5.8.0
125125
with:
126126
images: |
127127
blinklabs/vpn-indexer
@@ -137,21 +137,21 @@ jobs:
137137
# semver
138138
type=semver,pattern={{version}}
139139
- name: Build images
140-
uses: docker/build-push-action@v6
140+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0 https://github.com/docker/build-push-action/releases/tag/v6.18.0
141141
id: push
142142
with:
143143
outputs: "type=registry,push=true"
144144
platforms: linux/${{ matrix.arch }}
145145
tags: ${{ steps.meta.outputs.tags }}
146146
labels: ${{ steps.meta.outputs.labels }}
147147
- name: Attest Docker Hub image
148-
uses: actions/attest-build-provenance@v2
148+
uses: actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be # v2.4.0 https://github.com/actions/attest-build-provenance/releases/tag/v2.4.0
149149
with:
150150
subject-name: index.docker.io/blinklabs/vpn-indexer
151151
subject-digest: ${{ steps.push.outputs.digest }}
152152
push-to-registry: true
153153
- name: Attest GHCR image
154-
uses: actions/attest-build-provenance@v2
154+
uses: actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be # v2.4.0 https://github.com/actions/attest-build-provenance/releases/tag/v2.4.0
155155
with:
156156
subject-name: ghcr.io/${{ github.repository }}
157157
subject-digest: ${{ steps.push.outputs.digest }}
@@ -165,18 +165,18 @@ jobs:
165165
runs-on: ubuntu-latest
166166
steps:
167167
- name: Login to Docker Hub
168-
uses: docker/login-action@v3
168+
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0 https://github.com/docker/login-action/releases/tag/v3.5.0
169169
with:
170170
username: blinklabs
171171
password: ${{ secrets.DOCKER_PASSWORD }} # uses token
172172
- name: Login to GHCR
173-
uses: docker/login-action@v3
173+
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0 https://github.com/docker/login-action/releases/tag/v3.5.0
174174
with:
175175
username: ${{ github.repository_owner }}
176176
password: ${{ secrets.GITHUB_TOKEN }}
177177
registry: ghcr.io
178178
- id: meta
179-
uses: docker/metadata-action@v5
179+
uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0 https://github.com/docker/metadata-action/releases/tag/v5.8.0
180180
with:
181181
images: |
182182
blinklabs/vpn-indexer
@@ -201,10 +201,10 @@ jobs:
201201
docker manifest push ${t}
202202
done
203203
# Checkout repo so README.md is available for next step
204-
- uses: actions/checkout@v4
204+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 https://github.com/actions/checkout/releases/tag/v4.3.0
205205
# Update Docker Hub from README
206206
- name: Docker Hub Description
207-
uses: peter-evans/dockerhub-description@v4
207+
uses: peter-evans/dockerhub-description@432a30c9e07499fd01da9f8a49f0faf9e0ca5b77 # v4.0.2 https://github.com/peter-evans/dockerhub-description/releases/tag/v4.0.2
208208
with:
209209
username: blinklabs
210210
password: ${{ secrets.DOCKER_PASSWORD }}
@@ -218,7 +218,7 @@ jobs:
218218
contents: write
219219
needs: [create-draft-release, build-binaries, build-images, build-image-manifest]
220220
steps:
221-
- uses: actions/github-script@v7
221+
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 https://github.com/actions/github-script/releases/tag/v7.0.1
222222
if: startsWith(github.ref, 'refs/tags/')
223223
with:
224224
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)