Skip to content

Commit b61d767

Browse files
SHA pin first-party GitHub Actions
Pins every actions/* and github/* uses: reference in .github/workflows to its commit SHA within its current major version, preserving the human-readable version in a trailing comment. Improves supply-chain posture against tag-mutation attacks on first-party namespaces. Follows cli/cli#13491 (cli/cli) and cli/cli#13490. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent df52b7a commit b61d767

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎.github/workflows/go.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515
steps:
1616

1717
- name: Set up Go
18-
uses: actions/setup-go@v2
18+
uses: actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492 # v2.2.0
1919
with:
2020
go-version: ^${{matrix.go}}
2121

2222
- name: Check out code into the Go module directory
23-
uses: actions/checkout@v2
23+
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
2424

2525
- name: Get dependencies
2626
run: go get -v -t -d ./...

0 commit comments

Comments
 (0)