Skip to content

Commit 37fc7e4

Browse files
dgilmanuniclaude
andauthored
fix: pin all GitHub Actions to commit SHAs (#1125)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent d47c9f1 commit 37fc7e4

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

.github/workflows/check-and-deploy.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
run:
1616
working-directory: ./
1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
1919
with:
2020
persist-credentials: false
2121

22-
- uses: actions/setup-node@v3
22+
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3
2323
with:
2424
node-version: 20
2525
cache: 'yarn'
@@ -54,7 +54,7 @@ jobs:
5454
steps:
5555
# Step 1: Retrieve the Vercel Preview URL
5656
- name: vercel-preview-url
57-
uses: zentered/vercel-preview-url@v1.1.9
57+
uses: zentered/vercel-preview-url@e5fb141da2e3d62692b38e6c7c17477aad214165 # v1.1.9
5858
id: vercel_preview_url
5959
env:
6060
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
@@ -63,7 +63,7 @@ jobs:
6363
vercel_team_id: ${{ secrets.VERCEL_ORG_ID }}
6464

6565
# Step 2: Wait for the Vercel deployment to be ready
66-
- uses: UnlyEd/github-action-await-vercel@v1
66+
- uses: UnlyEd/github-action-await-vercel@3d536f03d951e603b21701814ba211dcbbafaf93 # v1
6767
id: await-vercel
6868
env:
6969
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
@@ -72,12 +72,12 @@ jobs:
7272
timeout: 420
7373
poll-interval: 15
7474

75-
- uses: actions/checkout@v3
75+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
7676
with:
7777
persist-credentials: false
7878
- name: Audit preview URL with Lighthouse (mobile)
7979
id: lighthouse_audit_mobile
80-
uses: treosh/lighthouse-ci-action@v9
80+
uses: treosh/lighthouse-ci-action@2e159d989f91bb9e399801b3e1ad90bcd4749f75 # v9
8181
with:
8282
urls: |
8383
https://${{ steps.vercel_preview_url.outputs.preview_url }}
@@ -86,7 +86,7 @@ jobs:
8686

8787
- name: Audit preview URL with Lighthouse (desktop)
8888
id: lighthouse_audit
89-
uses: treosh/lighthouse-ci-action@v9
89+
uses: treosh/lighthouse-ci-action@2e159d989f91bb9e399801b3e1ad90bcd4749f75 # v9
9090
with:
9191
urls: |
9292
https://${{ steps.vercel_preview_url.outputs.preview_url }}
@@ -96,7 +96,7 @@ jobs:
9696

9797
- name: Format Lighthouse score
9898
id: format_lighthouse_score
99-
uses: actions/github-script@v3
99+
uses: actions/github-script@ffc2c79a5b2490bd33e0a41c1de74b877714d736 # v3
100100
with:
101101
github-token: ${{secrets.GITHUB_TOKEN}}
102102
script: |
@@ -131,7 +131,7 @@ jobs:
131131
].join('\n');
132132
core.setOutput("comment", comment);
133133
- name: Add comment to PR
134-
uses: mshick/add-pr-comment@v1
134+
uses: mshick/add-pr-comment@a96c578acba98b60f16c6866d5f20478dc4ef68b # v1
135135
with:
136136
message: |
137137
${{ steps.format_lighthouse_score.outputs.comment }}

.github/workflows/lint.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ jobs:
1111

1212
steps:
1313
- name: Check out Git repository
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
1515
with:
1616
persist-credentials: false
1717

1818
- name: Set up node
19-
uses: actions/setup-node@v3
19+
uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3
2020
with:
2121
node-version: 20
2222

.github/workflows/search.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
1414
with:
1515
persist-credentials: false
1616
- name: Set up Homebrew
17-
uses: Homebrew/actions/setup-homebrew@master
17+
uses: Homebrew/actions/setup-homebrew@b2a302b9a642580cae998e6ba2076ffd28e61317 # master
1818
- name: Run Scraper
1919
run: |
2020
sudo apt-get update && sudo apt-get install -y jq

0 commit comments

Comments
 (0)