Skip to content

Commit 724d383

Browse files
authored
[CI] Pin GitHub Actions to specific commit SHAs (#27185)
Pin actions/checkout and setup-emsdk to specific commit SHAs to ensure build reproducibility and security against upstream changes.
1 parent fb69be2 commit 724d383

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ jobs:
3333
if: github.event_name == 'pull_request'
3434
steps:
3535
- name: Install emsdk
36-
uses: emscripten-core/setup-emsdk@v16
36+
uses: emscripten-core/setup-emsdk@4528d102f7230f0e7b276855c01ea1159be0e984 # v16
3737
with:
3838
version: tot
3939
- name: Set EM_CONFIG
4040
run:
4141
echo "EM_CONFIG=$EMSDK/.emscripten" >> $GITHUB_ENV
4242
- name: Checkout repo
43-
uses: actions/checkout@v4
43+
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
4444
with:
4545
submodules: true
4646
fetch-depth: 0 # We want access to other branches, specifically `main`
@@ -101,7 +101,7 @@ jobs:
101101
LLVM_VERSION: 19
102102
runs-on: ubuntu-latest
103103
steps:
104-
- uses: actions/checkout@v4
104+
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
105105
# Fetch all history for all tags and branches
106106
with:
107107
fetch-depth: 0

.github/workflows/rebaseline-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ jobs:
1818
GH_TOKEN: ${{ secrets.EMSCRIPTEN_BOT_TOKEN }}
1919
steps:
2020
- name: Install emsdk
21-
uses: emscripten-core/setup-emsdk@v16
21+
uses: emscripten-core/setup-emsdk@4528d102f7230f0e7b276855c01ea1159be0e984 # v16
2222
with:
2323
version: tot
2424
- name: Set EM_CONFIG
2525
run:
2626
echo "EM_CONFIG=$EMSDK/.emscripten" >> $GITHUB_ENV
2727
- name: Checkout repo
28-
uses: actions/checkout@v4
28+
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
2929
with:
3030
fetch-depth: 0
3131
submodules: true

.github/workflows/tag-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout repo
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
1717
with:
1818
token: ${{ secrets.EMSCRIPTEN_BOT_TOKEN }}
1919
fetch-depth: 0

.github/workflows/update-website.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
GITHUB_TOKEN: ${{ secrets.EMSCRIPTEN_BOT_TOKEN }}
1414
steps:
1515
- name: Checkout repo
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
1717
with:
1818
fetch-depth: 0
1919
submodules: true
2020
- name: Checkout website repo
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
2222
with:
2323
repository: kripken/emscripten-site
2424
ref: gh-pages

0 commit comments

Comments
 (0)