Skip to content

Commit 293c2d6

Browse files
SHA pin first-party GitHub Actions
Pins every actions/* and github/* uses: reference in .github/workflows to its commit SHA, with the human-readable version preserved in a trailing comment, matching the convention already used for third-party actions. Removes the supply-chain exposure left by floating @vn tags now that dependabot has a 3-day cooldown configured. Follows cli/cli#13491 (cli/cli) and cli/cli#13490. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 9f26d71 commit 293c2d6

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,21 @@ jobs:
2525

2626
steps:
2727
- name: Check out code
28-
uses: actions/checkout@v6
28+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2929

3030
- name: Setup Go
3131
if: matrix.language == 'go'
32-
uses: actions/setup-go@v6
32+
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
3333
with:
3434
go-version-file: "go.mod"
3535

3636
- name: Initialize CodeQL
37-
uses: github/codeql-action/init@v4.35.5
37+
uses: github/codeql-action/init@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0
3838
with:
3939
languages: ${{ matrix.language }}
4040
queries: security-and-quality
4141

4242
- name: Perform CodeQL Analysis
43-
uses: github/codeql-action/analyze@v4.35.5
43+
uses: github/codeql-action/analyze@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0
4444
with:
4545
category: "/language:${{ matrix.language }}"

.github/workflows/push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
name: Test suite
1717

1818
steps:
19-
- uses: actions/checkout@v6
19+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2020
with:
2121
persist-credentials: false
2222
- name: Setup go
23-
uses: actions/setup-go@v6
23+
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
2424
with:
2525
go-version-file: go.mod
2626
- run: go test -v ./...

0 commit comments

Comments
 (0)