Skip to content

Commit e18c636

Browse files
Pin GitHub Actions to commit SHAs (#270)
Pins GitHub Actions `uses:` references in `github/accessibility-scanner` to immutable commit SHAs. ## Summary | Metric | Count | | --- | ---: | | Files changed | 3 | | Files scanned | 2 | | Refs found | 3 | | Refs pinned | 3 | | Skipped refs | 0 | | Warnings | 0 | | Errors | 0 | ## Why Pinning actions to full commit SHAs prevents future tag or branch retargeting from changing workflow behavior without review. ## Reviewer notes - Original refs are preserved in inline comments when possible. - Pin comments use the Dependabot-compatible original-ref style. - Branch refs were allowed and pinned to their current HEAD; review mutable-branch pins carefully. - No minimum action age was enforced for this run. ## Pinned refs | Location | Before | After | Resolved as | | --- | --- | --- | --- | | `.github/workflows/lint.yml:26` | `actions/checkout@v7` | `actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1` | `tag` | | `.github/workflows/lint.yml:29` | `actions/setup-node@v7` | `actions/setup-node@820762786026740c76f36085b0efc47a31fe5020` | `tag` | | `.github/workflows/test.yml:34` | `actions/checkout@v7` | `actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1` | `tag` | ## Dependabot - Added a 7-day cooldown (`cooldown: default-days: 7`) to the existing `github-actions` Dependabot configuration. - The cooldown delays applying a newly published action release for 7 days, reducing exposure to a compromised or broken release while keeping you SHA-pinned. --- Generated by pinner 0.1.0.
1 parent d78e663 commit e18c636

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎.github/dependabot.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ updates:
3636
- "*"
3737
schedule:
3838
interval: "weekly"
39+
cooldown:
40+
default-days: 7
3941
- package-ecosystem: "bundler"
4042
directory: "/sites/site-with-errors"
4143
groups:

‎.github/workflows/lint.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- name: Checkout
26-
uses: actions/checkout@v7
26+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2727

2828
- name: Setup Node
29-
uses: actions/setup-node@v7
29+
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
3030
with:
3131
node-version: 24
3232
cache: npm

‎.github/workflows/test.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
site: ['sites/site-with-errors']
3232
steps:
3333
- name: Checkout
34-
uses: actions/checkout@v7
34+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3535

3636
- name: Setup Ruby
3737
uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b

0 commit comments

Comments
 (0)