Skip to content

Commit 8cb71c8

Browse files
committed
Pin actions/checkout to SHA and disable credential persistence
Pin actions/checkout to v7.0.0 SHA (9c091bb) to mitigate supply-chain risk from mutable tags. Add persist-credentials: false since the workflow only needs read access for shellcheck validation.
1 parent 7f62f8f commit 8cb71c8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/shellcheck.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: Checkout repository
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
22+
with:
23+
persist-credentials: false
2224

2325
- name: Run ShellCheck
2426
run: make test-shellcheck

0 commit comments

Comments
 (0)