Skip to content

Commit 4d75f4e

Browse files
committed
ci: pin third-party actions to commit SHAs
Pin actions/checkout, actions/setup-go, and goreleaser-action to the commit SHA their current major-version tag points to, with the tag preserved as a comment. Prevents an upstream tag move from silently changing what runs in CI.
1 parent 45334b3 commit 4d75f4e

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
matrix:
1717
go-version: ['1.22', '1.23']
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
2020
with:
2121
persist-credentials: false
2222

23-
- uses: actions/setup-go@v5
23+
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
2424
with:
2525
go-version: ${{ matrix.go-version }}
2626

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ jobs:
1212
permissions:
1313
contents: write
1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
1616
with:
1717
fetch-depth: 0
1818
persist-credentials: false
1919

20-
- uses: actions/setup-go@v5
20+
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
2121
with:
2222
go-version: '1.22'
2323
cache: false
2424

25-
- uses: goreleaser/goreleaser-action@v6
25+
- uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6.4.0
2626
with:
2727
version: '~> v2'
2828
args: release --clean

0 commit comments

Comments
 (0)