Skip to content

Commit 4c309f5

Browse files
authored
Pin SHA of third-party GitHub Actions (#405)
The full-version Git tags used by Actions are mutable (as seen in recent events in the wider GitHub Actions community), so pinning third-party Actions to a SHA is recommended: https://docs.github.com/en/actions/security-for-github-actions/security-guides/security-hardening-for-github-actions#using-third-party-actions The version tag has been added after the pin as a comment (as a readability aid) in a format that Dependabot will keep up to date: dependabot/dependabot-core#4691 I've also enabled Dependabot grouping for GitHub Actions updates to reduce PR noise. GUS-W-18051077.
1 parent 9d2641c commit 4c309f5

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

.github/dependabot.yml

+5
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,8 @@ updates:
2121
- "dependencies"
2222
- "github actions"
2323
- "skip changelog"
24+
groups:
25+
github-actions:
26+
update-types:
27+
- "minor"
28+
- "patch"

.github/workflows/ci.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Update Rust toolchain
2323
run: rustup update
2424
- name: Rust Cache
25-
uses: Swatinem/rust-cache@v2.7.7
25+
uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7
2626
- name: Clippy
2727
run: cargo clippy --all-targets --locked -- --deny warnings
2828
- name: rustfmt
@@ -36,7 +36,7 @@ jobs:
3636
- name: Update Rust toolchain
3737
run: rustup update
3838
- name: Rust Cache
39-
uses: Swatinem/rust-cache@v2.7.7
39+
uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7
4040
- name: Run unit tests
4141
run: cargo test --locked
4242

@@ -52,9 +52,9 @@ jobs:
5252
- name: Install Rust linux-musl target
5353
run: rustup target add x86_64-unknown-linux-musl
5454
- name: Rust Cache
55-
uses: Swatinem/rust-cache@v2.7.7
55+
uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7
5656
- name: Install Pack CLI
57-
uses: buildpacks/github-actions/setup-pack@v5.8.8
57+
uses: buildpacks/github-actions/setup-pack@0f05ba41fb74d56ab4cb27485f538a8d65b4122e # v5.8.9
5858
- name: Run integration tests
5959
# Runs only tests annotated with the `ignore` attribute (which in this repo, are the integration tests).
6060
run: cargo test --locked -- --ignored
@@ -75,9 +75,9 @@ jobs:
7575
- name: Install Rust linux-musl target
7676
run: rustup target add ${{ matrix.target }}
7777
- name: Rust Cache
78-
uses: Swatinem/rust-cache@v2.7.7
78+
uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7
7979
- name: Install Pack CLI
80-
uses: buildpacks/github-actions/setup-pack@v5.8.8
80+
uses: buildpacks/github-actions/setup-pack@0f05ba41fb74d56ab4cb27485f538a8d65b4122e # v5.8.9
8181
- name: Pull builder and run images
8282
run: |
8383
docker pull "heroku/builder:24"

0 commit comments

Comments
 (0)