Skip to content

Commit 14dd048

Browse files
committed
Pin GitHub Actions to commit SHAs
Pin actions/checkout@v4 and actions/setup-go@v5 to their current commit SHAs to prevent supply chain attacks via compromised mutable tags.
1 parent 5e54815 commit 14dd048

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
image: node:bookworm
1313
options: --ulimit core=-1 --ulimit memlock=-1:-1
1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
1616
- name: Install Bun
1717
run: |
1818
set -e # Exit on error

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
image: node:bookworm
3030
options: --ulimit core=-1 --ulimit memlock=-1:-1
3131
steps:
32-
- uses: actions/checkout@v4
32+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
3333
- name: Install Bun
3434
run: |
3535
set -e # Exit on error
@@ -70,7 +70,7 @@ jobs:
7070
INDEX (created)
7171
);"
7272
- name: Setup Go environment
73-
uses: actions/setup-go@v5
73+
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
7474
with:
7575
go-version: 1.24.0
7676
- name: Test Cross-Language
@@ -92,7 +92,7 @@ jobs:
9292
matrix:
9393
arch: [ {tag: arm64v8, platform: linux/arm64/v8} ]
9494
steps:
95-
- uses: actions/checkout@v4
95+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
9696
- name: Setup Multi-Architecture Support
9797
run: scripts/setup-multiarch.sh
9898
- name: Test Multi-Architecture

0 commit comments

Comments
 (0)