Skip to content

Commit b8524a3

Browse files
authored
ci: pin GitHub Actions to SHAs (#2292)
1 parent a477bfd commit b8524a3

8 files changed

Lines changed: 30 additions & 30 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ jobs:
3131
3232
steps:
3333
- name: Checkout
34-
uses: actions/checkout@v6
34+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
3535
with:
3636
persist-credentials: false
3737

3838
- name: Set up Node.js
39-
uses: actions/setup-node@v6
39+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
4040
with:
4141
# node-version-file: ".nvmrc" use when .nvmrc is on root of the repo
4242
node-version: '24.13'
@@ -58,19 +58,19 @@ jobs:
5858
github.event_name != 'pull_request_review'
5959
6060
steps:
61-
- uses: actions/checkout@v6
61+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
6262
with:
6363
persist-credentials: false
6464

6565
- name: Build Astro site
66-
uses: withastro/action@v6
66+
uses: withastro/action@b7d53628f8b666036b0238aadb0b984a2a489f26 # v6
6767
with:
6868
path: .
6969
package-manager: npm
7070
out-dir: dist
7171

7272
- name: Upload build artifact for linkChecker
73-
uses: actions/upload-artifact@v4
73+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
7474
with:
7575
name: site-dist
7676
path: dist/
@@ -81,12 +81,12 @@ jobs:
8181
runs-on: ubuntu-latest
8282
steps:
8383
- name: Checkout
84-
uses: actions/checkout@v6
84+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
8585
with:
8686
persist-credentials: false
8787

8888
- name: Download build artifact
89-
uses: actions/download-artifact@v4
89+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
9090
with:
9191
name: site-dist
9292
path: dist/

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ jobs:
4141

4242
steps:
4343
- name: Checkout repository
44-
uses: actions/checkout@v6
44+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
4545

4646
# Initializes the CodeQL tools for scanning.
4747
- name: Initialize CodeQL
48-
uses: github/codeql-action/init@v4
48+
uses: github/codeql-action/init@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4
4949
with:
5050
languages: ${{ matrix.language }}
5151
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -55,7 +55,7 @@ jobs:
5555
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5656
# If this step fails, then you should remove it and run the build manually (see below)
5757
- name: Autobuild
58-
uses: github/codeql-action/autobuild@v4
58+
uses: github/codeql-action/autobuild@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4
5959

6060
# ℹ️ Command-line programs to run using the OS shell.
6161
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -68,6 +68,6 @@ jobs:
6868
# ./location_of_script_within_repo/buildscript.sh
6969

7070
- name: Perform CodeQL Analysis
71-
uses: github/codeql-action/analyze@v4
71+
uses: github/codeql-action/analyze@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4
7272
with:
7373
category: '/language:${{matrix.language}}'

.github/workflows/crowdin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v6
17+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1818
with:
1919
persist-credentials: false
2020

.github/workflows/deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
runs-on: ubuntu-latest
2222
steps:
2323
- name: Checkout
24-
uses: actions/checkout@v6
24+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2525

2626
- name: Build and upload pages artifact
27-
uses: withastro/action@v6
27+
uses: withastro/action@b7d53628f8b666036b0238aadb0b984a2a489f26 # v6
2828
with:
2929
path: .
3030
package-manager: npm
@@ -40,4 +40,4 @@ jobs:
4040
steps:
4141
- name: Deploy to GitHub Pages
4242
id: deployment
43-
uses: actions/deploy-pages@v4
43+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4

.github/workflows/playwright.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121

2222
steps:
2323
- name: Checkout code
24-
uses: actions/checkout@v6
24+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2525

2626
- name: Setup Node.js
27-
uses: actions/setup-node@v6
27+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
2828
with:
2929
node-version: '24.13'
3030
cache: 'npm'
@@ -61,7 +61,7 @@ jobs:
6161
run: echo "version=$(npx playwright --version | awk '{print $2}')" >> $GITHUB_OUTPUT
6262

6363
- name: Cache Playwright browsers
64-
uses: actions/cache@v4
64+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
6565
with:
6666
path: ~/.cache/ms-playwright
6767
key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }}
@@ -79,7 +79,7 @@ jobs:
7979

8080
- name: Upload Playwright test results
8181
if: always()
82-
uses: actions/upload-artifact@v4
82+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
8383
with:
8484
name: playwright-report
8585
path: playwright-report/

.github/workflows/scorecards.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636

3737
steps:
3838
- name: 'Checkout code'
39-
uses: actions/checkout@v6
39+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
4040
with:
4141
persist-credentials: false
4242

@@ -63,14 +63,14 @@ jobs:
6363
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
6464
# format to the repository Actions tab.
6565
- name: 'Upload artifact'
66-
uses: actions/upload-artifact@v6
66+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
6767
with:
6868
name: SARIF file
6969
path: results.sarif
7070
retention-days: 5
7171

7272
# Upload the results to GitHub's code scanning dashboard.
7373
- name: 'Upload to code-scanning'
74-
uses: github/codeql-action/upload-sarif@v4
74+
uses: github/codeql-action/upload-sarif@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4
7575
with:
7676
sarif_file: results.sarif

.github/workflows/sync-orama.yml

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

2626
steps:
2727
- name: 'Checkout'
28-
uses: actions/checkout@v6
28+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2929
with:
3030
persist-credentials: false
3131

3232
- name: Set up Node.js
33-
uses: actions/setup-node@v6
33+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
3434
with:
3535
node-version-file: '.nvmrc'
3636
cache: 'npm'

.github/workflows/update-external-docs.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
if: github.repository_owner == 'expressjs'
1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v6
18+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1919
with:
2020
persist-credentials: false
2121

@@ -35,7 +35,7 @@ jobs:
3535
3636
- name: Create Pull Request
3737
if: steps.expiry.outputs.bump == 'true'
38-
uses: gr2m/create-or-update-pull-request-action@v1
38+
uses: gr2m/create-or-update-pull-request-action@b65137ca591da0b9f43bad7b24df13050ea45d1b # v1.10.1
3939
env:
4040
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4141
with:
@@ -60,12 +60,12 @@ jobs:
6060
if: github.repository_owner == 'expressjs'
6161
steps:
6262
- name: Checkout
63-
uses: actions/checkout@v6
63+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
6464
with:
6565
persist-credentials: false
6666

6767
- name: Set up Node.js
68-
uses: actions/setup-node@v4
68+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
6969
with:
7070
node-version: lts/*
7171

@@ -82,7 +82,7 @@ jobs:
8282
run: npm run fix
8383

8484
- name: Create Pull Request
85-
uses: gr2m/create-or-update-pull-request-action@v1
85+
uses: gr2m/create-or-update-pull-request-action@b65137ca591da0b9f43bad7b24df13050ea45d1b # v1.10.1
8686
env:
8787
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8888
with:
@@ -100,7 +100,7 @@ jobs:
100100
if: github.repository_owner == 'expressjs'
101101
steps:
102102
- name: Checkout
103-
uses: actions/checkout@v6
103+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
104104
with:
105105
persist-credentials: false
106106

0 commit comments

Comments
 (0)