Skip to content

Commit 0c9eeed

Browse files
authored
chore(ci) pin 3rd-party actions to commit hashes
1 parent 3b009cd commit 0c9eeed

File tree

6 files changed

+20
-20
lines changed

6 files changed

+20
-20
lines changed

.github/actions/setup-httpbin-server/action.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,18 @@ runs:
5858
5959
- name: Login to GitHub Container Registry
6060
if: ${{ steps.setup.outputs.push == 'true' }}
61-
uses: docker/login-action@v3
61+
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
6262
with:
6363
registry: ghcr.io
6464
username: ${{ inputs.ghcr_username }}
6565
password: ${{ inputs.ghcr_password }}
6666

6767
- name: Setup Docker Buildx
6868
if: ${{ !env.ACT }}
69-
uses: docker/setup-buildx-action@v3
69+
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3
7070

7171
- name: Build httpbin-proxy image
72-
uses: docker/build-push-action@v5
72+
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
7373
with:
7474
file: './assets/ci/Dockerfile.nginx'
7575
tags: ${{ steps.setup.outputs.tag }}

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ jobs:
170170
steps:
171171
- name: Coveralls Finished
172172
if: ${{ !env.ACT }}
173-
uses: coverallsapp/github-action@v2
173+
uses: coverallsapp/github-action@cfd0633edbd2411b532b808ba7a8b5e04f76d2c8 # v2
174174
with:
175175
github-token: ${{ secrets.GITHUB_TOKEN }}
176176
parallel-finished: true
@@ -255,7 +255,7 @@ jobs:
255255
~/.rustup/toolchains/*
256256
~/.rustup/update-hashes/*
257257
key: rust-toolchain-${{ runner.os }}-${{ hashFiles('.github/**/*.yml', '.github/**/*.sh', 'rust-toolchain') }}
258-
- uses: dtolnay/rust-toolchain@stable
258+
- uses: dtolnay/rust-toolchain@1ff72ee08e3cb84d84adba594e0a297990fc1ed3 # stable
259259
with:
260260
components: clippy
261261
- name: 'Setup cache - work/ dir'

.github/workflows/codeql.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
echo "name=${{ matrix.language }}" >> $GITHUB_OUTPUT
7171
fi
7272
- name: Filter SARIF
73-
uses: advanced-security/filter-sarif@v1
73+
uses: advanced-security/filter-sarif@f3b8118a9349d88f7b1c0c488476411145b6270d # v1
7474
with:
7575
patterns: |
7676
-**/* # exclusion: DENY ALL

.github/workflows/job-unit-tests.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ jobs:
104104
key: work-${{ inputs.os }}-${{ inputs.cc }}-${{ inputs.ngx }}-${{ inputs.openresty }}-${{ inputs.runtime }}-${{ hashFiles('util/**/*.sh', 'util/**/*.pl', 'util/**/*.awk', '.github/**/*.yml', '.github/**/*.sh', '.github/**/*.js', 'rust-toolchain', 'Makefile') }}
105105
- name: Setup Rust
106106
if: ${{ !env.ACT }}
107-
uses: dtolnay/rust-toolchain@stable
107+
uses: dtolnay/rust-toolchain@1ff72ee08e3cb84d84adba594e0a297990fc1ed3 # stable
108108
with:
109109
target: wasm32-wasip1
110110
- name: Add wasm32-unknown-unknown target
@@ -118,7 +118,7 @@ jobs:
118118
go-version: 1.22.x
119119
- name: Setup TinyGo
120120
if: ${{ !env.ACT }}
121-
uses: acifani/setup-tinygo@v2
121+
uses: acifani/setup-tinygo@b2ba42b249c7d3efdfe94166ec0f48b3191404f7 # v2
122122
with:
123123
tinygo-version: 0.31.1
124124
- name: Setup Node.js
@@ -184,15 +184,15 @@ jobs:
184184
echo "name=$name" >> $GITHUB_OUTPUT
185185
- name: Coveralls Upload
186186
if: ${{ !env.ACT && inputs.coverage }}
187-
uses: coverallsapp/github-action@v2
187+
uses: coverallsapp/github-action@cfd0633edbd2411b532b808ba7a8b5e04f76d2c8 # v2
188188
with:
189189
github-token: ${{ secrets.GITHUB_TOKEN }}
190190
flag-name: ${{ steps.lcov.outputs.name }}
191191
path-to-lcov: './lcov.info'
192192
parallel: true
193193
- name: Codecov Upload
194194
if: ${{ !env.ACT && inputs.coverage }}
195-
uses: codecov/codecov-action@v4
195+
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4
196196
with:
197197
token: ${{ secrets.CODECOV_TOKEN }}
198198
files: './lcov.info'

.github/workflows/job-valgrind-tests.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
key: work-${{ inputs.os }}-${{ inputs.cc }}-${{ inputs.ngx }}-${{ inputs.openresty }}-${{ inputs.runtime }}-${{ hashFiles('util/**/*.sh', 'util/**/*.pl', 'util/**/*.awk', '.github/**/*.yml', '.github/**/*.sh', '.github/**/*.js', 'rust-toolchain', 'Makefile') }}
9494
- name: Setup Rust
9595
if: ${{ !env.ACT }}
96-
uses: dtolnay/rust-toolchain@stable
96+
uses: dtolnay/rust-toolchain@1ff72ee08e3cb84d84adba594e0a297990fc1ed3 # stable
9797
with:
9898
target: wasm32-wasip1
9999
- name: Setup Go
@@ -103,7 +103,7 @@ jobs:
103103
go-version: 1.22.x
104104
- name: Setup TinyGo
105105
if: ${{ !env.ACT }}
106-
uses: acifani/setup-tinygo@v2
106+
uses: acifani/setup-tinygo@b2ba42b249c7d3efdfe94166ec0f48b3191404f7 # v2
107107
with:
108108
tinygo-version: 0.31.1
109109
- name: Setup Node.js
@@ -139,7 +139,7 @@ jobs:
139139
lcov --gcov-tool gcov-${CC#*-} --extract lcov.info "*/ngx_wasm_module/src/*" --output-file lcov.info
140140
- name: Codecov Upload
141141
if: ${{ !env.ACT && inputs.coverage }}
142-
uses: codecov/codecov-action@v4
142+
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4
143143
with:
144144
token: ${{ secrets.CODECOV_TOKEN }}
145145
files: './lcov.info'

.github/workflows/release.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -144,17 +144,17 @@ jobs:
144144
steps:
145145
- uses: actions/checkout@v3
146146
- name: Login to GitHub Container Registry
147-
uses: docker/login-action@v3
147+
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
148148
with:
149149
registry: ghcr.io
150150
username: ${{ github.repository_owner }}
151151
password: ${{ secrets.TOKEN_GITHUB }}
152152
- name: Setup QEMU
153-
uses: docker/setup-qemu-action@v3
153+
uses: docker/setup-qemu-action@53851d14592bedcffcf25ea515637cff71ef929a # v3
154154
- name: Setup Docker Buildx
155-
uses: docker/setup-buildx-action@v3
155+
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3
156156
- name: ${{ matrix.name }}
157-
uses: docker/build-push-action@v5
157+
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
158158
with:
159159
file: ${{ matrix.file }}
160160
tags: ${{ matrix.tags }}
@@ -267,9 +267,9 @@ jobs:
267267
steps:
268268
- uses: actions/checkout@v3
269269
- name: Setup QEMU
270-
uses: docker/setup-qemu-action@v3
270+
uses: docker/setup-qemu-action@53851d14592bedcffcf25ea515637cff71ef929a # v3
271271
- name: Login to GitHub Container Registry
272-
uses: docker/login-action@v3
272+
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
273273
with:
274274
registry: ghcr.io
275275
username: ${{ github.repository_owner }}
@@ -448,7 +448,7 @@ jobs:
448448
run: find . -name '*.tar.gz'
449449
# Channel: nightly
450450
- name: Nightly release
451-
uses: marvinpinto/action-automatic-releases@latest
451+
uses: marvinpinto/action-automatic-releases@d68defdd11f9dcc7f52f35c1b7c236ee7513bcc1
452452
if: ${{ needs.setup.outputs.create_release == 'true' && needs.setup.outputs.release_channel == 'nightly' }}
453453
with:
454454
prerelease: true

0 commit comments

Comments
 (0)