Skip to content

Commit 61116c4

Browse files
authored
Pin checkout and setup-go to v7 SHAs (#43)
Bumps `actions/checkout` (v4 -> v7) and `actions/setup-go` (v5 -> v7), and pins both to commit SHAs with ratchet. The intervening majors are runtime (ESM/Node) and dependency bumps; nothing this workflow relies on changed. checkout v7 also blocks fork-PR checkout for `pull_request_target`/`workflow_run`, neither of which this workflow uses, and setup-go still reads `go-version-file`. Pinning to a SHA runs an immutable, verified ref instead of a mutable tag; the `# ratchet:actions/...@v7` comment keeps the version readable and lets `ratchet update` bump it later. Verified both SHAs resolve to the current `v7` tags. Signed-off-by: Seth Vargo <seth@sethvargo.com>
1 parent 23a54c1 commit 61116c4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
runs-on: 'ubuntu-latest'
2121

2222
steps:
23-
- uses: 'actions/checkout@v4'
23+
- uses: 'actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0' # ratchet:actions/checkout@v7
2424

25-
- uses: actions/setup-go@v5
25+
- uses: 'actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e' # ratchet:actions/setup-go@v7
2626
with:
2727
go-version-file: 'go.mod'
2828

0 commit comments

Comments
 (0)