Skip to content

Commit 5ccd3dd

Browse files
committed
👷 Pin github actions versions by commit hashes to prevent supply chain attacks
go run github.com/suzuki-shunsuke/pinact/cmd/pinact@latest run
1 parent e7dac4d commit 5ccd3dd

File tree

4 files changed

+23
-23
lines changed

4 files changed

+23
-23
lines changed

.github/workflows/codeql.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
5959
steps:
6060
- name: Checkout repository
61-
uses: actions/checkout@v6
61+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
6262

6363
# Add any setup steps before running the `github/codeql-action/init` action.
6464
# This includes steps like installing compilers or runtimes (`actions/setup-node`
@@ -68,7 +68,7 @@ jobs:
6868

6969
# Initializes the CodeQL tools for scanning.
7070
- name: Initialize CodeQL
71-
uses: github/codeql-action/[email protected]
71+
uses: github/codeql-action/init@cf1bb45a277cb3c205638b2cd5c984db1c46a412 # v4.31.7
7272
with:
7373
languages: ${{ matrix.language }}
7474
build-mode: ${{ matrix.build-mode }}
@@ -96,6 +96,6 @@ jobs:
9696
exit 1
9797
9898
- name: Perform CodeQL Analysis
99-
uses: github/codeql-action/[email protected]
99+
uses: github/codeql-action/analyze@cf1bb45a277cb3c205638b2cd5c984db1c46a412 # v4.31.7
100100
with:
101101
category: "/language:${{matrix.language}}"

.github/workflows/release-prep.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
runs-on: ubuntu-latest
3838
steps:
3939
- name: Checkout
40-
uses: actions/checkout@v6
40+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
4141

4242
- name: Install Rust toolchain
4343
uses: actions-rust-lang/setup-rust-toolchain@1780873c7b576612439a134613cc4cc74ce5538c # v1.15.2
@@ -115,7 +115,7 @@ jobs:
115115
echo "name=$BRANCH" >> "$GITHUB_OUTPUT"
116116
117117
- name: Create draft PR
118-
uses: peter-evans/create-pull-request@v8
118+
uses: peter-evans/create-pull-request@98357b18bf14b5342f975ff684046ec3b2a07725 # v8.0.0
119119
with:
120120
token: ${{ secrets.GITHUB_TOKEN }}
121121
branch: ${{ steps.branch.outputs.name }}

.github/workflows/release.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
env:
5858
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5959
steps:
60-
- uses: actions/checkout@v6
60+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
6161
with:
6262
persist-credentials: false
6363
submodules: recursive
@@ -67,7 +67,7 @@ jobs:
6767
shell: bash
6868
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.30.2/cargo-dist-installer.sh | sh"
6969
- name: Cache dist
70-
uses: actions/upload-artifact@v5
70+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
7171
with:
7272
name: cargo-dist-cache
7373
path: ~/.cargo/bin/dist
@@ -83,7 +83,7 @@ jobs:
8383
cat plan-dist-manifest.json
8484
echo "manifest=$(jq -c "." plan-dist-manifest.json)" >> "$GITHUB_OUTPUT"
8585
- name: "Upload dist-manifest.json"
86-
uses: actions/upload-artifact@v5
86+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
8787
with:
8888
name: artifacts-plan-dist-manifest
8989
path: plan-dist-manifest.json
@@ -118,7 +118,7 @@ jobs:
118118
- name: enable windows longpaths
119119
run: |
120120
git config --global core.longpaths true
121-
- uses: actions/checkout@v6
121+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
122122
with:
123123
persist-credentials: false
124124
submodules: recursive
@@ -129,15 +129,15 @@ jobs:
129129
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
130130
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
131131
fi
132-
- uses: swatinem/rust-cache@v2
132+
- uses: swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
133133
with:
134134
key: ${{ join(matrix.targets, '-') }}
135135
cache-provider: ${{ matrix.cache_provider }}
136136
- name: Install dist
137137
run: ${{ matrix.install_dist.run }}
138138
# Get the dist-manifest
139139
- name: Fetch local artifacts
140-
uses: actions/download-artifact@v6
140+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
141141
with:
142142
pattern: artifacts-*
143143
path: target/distrib/
@@ -164,7 +164,7 @@ jobs:
164164
165165
cp dist-manifest.json "$BUILD_MANIFEST_NAME"
166166
- name: "Upload artifacts"
167-
uses: actions/upload-artifact@v5
167+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
168168
with:
169169
name: artifacts-build-local-${{ join(matrix.targets, '_') }}
170170
path: |
@@ -182,19 +182,19 @@ jobs:
182182
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
183183
BUILD_MANIFEST_NAME: target/distrib/global-dist-manifest.json
184184
steps:
185-
- uses: actions/checkout@v6
185+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
186186
with:
187187
persist-credentials: false
188188
submodules: recursive
189189
- name: Install cached dist
190-
uses: actions/download-artifact@v6
190+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
191191
with:
192192
name: cargo-dist-cache
193193
path: ~/.cargo/bin/
194194
- run: chmod +x ~/.cargo/bin/dist
195195
# Get all the local artifacts for the global tasks to use (for e.g. checksums)
196196
- name: Fetch local artifacts
197-
uses: actions/download-artifact@v6
197+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
198198
with:
199199
pattern: artifacts-*
200200
path: target/distrib/
@@ -212,7 +212,7 @@ jobs:
212212
213213
cp dist-manifest.json "$BUILD_MANIFEST_NAME"
214214
- name: "Upload artifacts"
215-
uses: actions/upload-artifact@v5
215+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
216216
with:
217217
name: artifacts-build-global
218218
path: |
@@ -233,19 +233,19 @@ jobs:
233233
outputs:
234234
val: ${{ steps.host.outputs.manifest }}
235235
steps:
236-
- uses: actions/checkout@v6
236+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
237237
with:
238238
persist-credentials: false
239239
submodules: recursive
240240
- name: Install cached dist
241-
uses: actions/download-artifact@v6
241+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
242242
with:
243243
name: cargo-dist-cache
244244
path: ~/.cargo/bin/
245245
- run: chmod +x ~/.cargo/bin/dist
246246
# Fetch artifacts from scratch-storage
247247
- name: Fetch artifacts
248-
uses: actions/download-artifact@v6
248+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
249249
with:
250250
pattern: artifacts-*
251251
path: target/distrib/
@@ -258,14 +258,14 @@ jobs:
258258
cat dist-manifest.json
259259
echo "manifest=$(jq -c "." dist-manifest.json)" >> "$GITHUB_OUTPUT"
260260
- name: "Upload dist-manifest.json"
261-
uses: actions/upload-artifact@v5
261+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
262262
with:
263263
# Overwrite the previous copy
264264
name: artifacts-dist-manifest
265265
path: dist-manifest.json
266266
# Create a GitHub Release while uploading all files to it
267267
- name: "Download GitHub Artifacts"
268-
uses: actions/download-artifact@v6
268+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
269269
with:
270270
pattern: artifacts-*
271271
path: artifacts
@@ -299,7 +299,7 @@ jobs:
299299
env:
300300
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
301301
steps:
302-
- uses: actions/checkout@v6
302+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
303303
with:
304304
persist-credentials: false
305305
submodules: recursive

.github/workflows/rust-clippy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
cargo clippy --locked --all-targets --all-features --message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt
3939
continue-on-error: true
4040
- name: Upload analysis results to GitHub
41-
uses: github/codeql-action/upload-sarif@149d184a5153ea45e6fbcef5588ac7b8c7af9835 # v3.29.5
41+
uses: github/codeql-action/upload-sarif@cf1bb45a277cb3c205638b2cd5c984db1c46a412 # v4.31.7
4242
with:
4343
sarif_file: rust-clippy-results.sarif
4444
wait-for-processing: true

0 commit comments

Comments
 (0)