Skip to content

Commit c828fc0

Browse files
committed
Pin SHA of third-party GitHub Actions
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 18be66d commit c828fc0

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

.github/dependabot.yml

+5
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,8 @@ updates:
1313
directory: "/"
1414
schedule:
1515
interval: "monthly"
16+
groups:
17+
github-actions:
18+
update-types:
19+
- "minor"
20+
- "patch"

.github/workflows/build_jruby.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Update Rust toolchain
3737
run: rustup update
3838
- name: Rust Cache
39-
uses: Swatinem/[email protected]
39+
uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7
4040
- name: Cargo build
4141
run: cargo build
4242
- name: Output CHANGELOG
@@ -57,7 +57,7 @@ jobs:
5757
runs-on: pub-hk-ubuntu-24.04-xlarge
5858
steps:
5959
- name: Update Jruby inventory file locally
60-
uses: peter-evans/create-pull-request@v7
60+
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
6161
with:
6262
path: jruby_inventory.toml
6363
title: "Add JRuby ${{inputs.jruby_version}} to inventory"

.github/workflows/build_ruby.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: Update Rust toolchain
4242
run: rustup update
4343
- name: Rust Cache
44-
uses: Swatinem/[email protected]
44+
uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7
4545
- name: Cargo build
4646
run: cargo build
4747
- name: Output CHANGELOG
@@ -62,7 +62,7 @@ jobs:
6262
runs-on: pub-hk-ubuntu-24.04-xlarge
6363
steps:
6464
- name: Update Ruby inventory file locally
65-
uses: peter-evans/create-pull-request@v7
65+
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
6666
with:
6767
path: ruby_inventory.toml
6868
title: "Add Ruby ${{inputs.ruby_version}} to inventory"

.github/workflows/ci.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
# which include the latest stable release of Rust, Rustup, Clippy and rustfmt.
2424
run: rustup update
2525
- name: Rust Cache
26-
uses: Swatinem/[email protected]
26+
uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7
2727
- name: Clippy
2828
# Using --all-targets so tests are checked and --deny to fail on warnings.
2929
# Not using --locked here and below since Cargo.lock is in .gitignore.
@@ -43,7 +43,7 @@ jobs:
4343
- name: Update Rust toolchain
4444
run: rustup update
4545
- name: Rust Cache
46-
uses: Swatinem/[email protected]
46+
uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7
4747
- name: Run unit tests
4848
run: cargo test --all-features
4949

@@ -65,7 +65,7 @@ jobs:
6565
- name: Update Rust toolchain
6666
run: rustup update
6767
- name: Rust Cache
68-
uses: Swatinem/[email protected]
68+
uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7
6969
- name: Cargo build (to make test logs shorter)
7070
run: cargo build
7171
- name: Output CHANGELOG
@@ -93,7 +93,7 @@ jobs:
9393
- name: Update Rust toolchain
9494
run: rustup update
9595
- name: Rust Cache
96-
uses: Swatinem/[email protected]
96+
uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7
9797
- name: Cargo build (to make test logs shorter)
9898
run: cargo build
9999
- name: Output CHANGELOG

0 commit comments

Comments
 (0)