Commit 30ee997
authored
chore: pin GitHub Actions to commit SHAs (#209)
## Pin GitHub Actions to commit SHAs
GitHub Actions referenced by tag (e.g. `actions/checkout@v4`) use a
mutable pointer — the tag owner can move it to a different commit at any
time, including a malicious one. This is the attack vector used in the
tj-actions/changed-files incident (CVE-2025-30066).
Pinning to a full 40-character commit SHA makes the reference immutable.
The `# tag` comment preserves human readability so reviewers can tell
which version is pinned.
Important: a SHA can also originate from a forked repository. A
malicious actor can fork an action, push a compromised commit to the
fork, and the SHA will resolve — but it won't exist in the upstream
canonical repo. Each SHA in this PR was verified against the action's
canonical repository (not a fork).
### Changes
- `dfinity/ci-tools/.github/workflows/check-pr-title.yaml@main` ->
`dfinity/ci-tools/.github/workflows/check-pr-title.yaml@afeee4fbdc0683a88ec5a74ed7f59a2ce0e833ad
# main`
- Version: main | Latest: ? | Release age: ?
- Commit:
dfinity/ci-tools@afeee4f
- `dfinity/ci-tools/.github/workflows/check-commit-messages.yaml@main`
->
`dfinity/ci-tools/.github/workflows/check-commit-messages.yaml@afeee4fbdc0683a88ec5a74ed7f59a2ce0e833ad
# main`
- Version: main | Latest: ? | Release age: ?
- Commit:
dfinity/ci-tools@afeee4f
- `dfinity/ci-tools/.github/workflows/generate-changelog.yaml@main` ->
`dfinity/ci-tools/.github/workflows/generate-changelog.yaml@afeee4fbdc0683a88ec5a74ed7f59a2ce0e833ad
# main`
- Version: main | Latest: ? | Release age: ?
- Commit:
dfinity/ci-tools@afeee4f
- `dfinity/ci-tools/actions/create-pr@main` ->
`dfinity/ci-tools/actions/create-pr@afeee4fbdc0683a88ec5a74ed7f59a2ce0e833ad
# main`
- Version: main | Latest: ? | Release age: ?
- Commit:
dfinity/ci-tools@afeee4f
### Files modified
- `.github/workflows/commitizen.yml`
- `.github/workflows/generate-changelog.yml`
- `.github/workflows/pull-project-docs.yml`1 parent 58fecf2 commit 30ee997
3 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
0 commit comments