Skip to content

Commit aa0f62f

Browse files
authored
Merge pull request #7502 from LuBingtan/pin-action-sha
🌱 Pin GitHub actions to commit SHAs
2 parents 6f32637 + 6f666c6 commit aa0f62f

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

.github/workflows/dependabot.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: Set up Go 1.x
21-
uses: actions/setup-go@v3
21+
uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f # tag=v3.3.0
2222
with:
2323
go-version: '1.19'
2424
id: go
2525
- name: Check out code into the Go module directory
26-
uses: actions/checkout@v3
27-
- uses: actions/[email protected]
26+
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2
27+
- uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # tag=v3.0.11
2828
name: Restore go cache
2929
with:
3030
path: |
@@ -37,7 +37,7 @@ jobs:
3737
run: make generate-modules
3838
- name: Update generated code
3939
run: make generate
40-
- uses: EndBug/add-and-commit@v9
40+
- uses: EndBug/add-and-commit@d4d066316a2a85974a05efb42be78f897793c6d9 # tag=v9.1.0
4141
name: Commit changes
4242
with:
4343
author_name: dependabot[bot]

.github/workflows/golangci-lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ jobs:
1818
- test
1919
- hack/tools
2020
steps:
21-
- uses: actions/checkout@v3
22-
- uses: actions/setup-go@v3
21+
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2
22+
- uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f # tag=v3.3.0
2323
with:
2424
go-version: 1.19
2525
- name: golangci-lint
26-
uses: golangci/[email protected]
26+
uses: golangci/golangci-lint-action@07db5389c99593f11ad7b44463c2d4233066a9b1 # tag=v3.3.0
2727
with:
2828
version: v1.50.0
2929
working-directory: ${{matrix.working-directory}}

.github/workflows/lint-docs-pr.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
name: Broken Links
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v3
18-
- uses: gaurav-nelson/github-action-markdown-link-check@v1
17+
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2
18+
- uses: gaurav-nelson/github-action-markdown-link-check@5c5dfc0ac2e225883c0e5f03a85311ec2830d368 # tag=v1
1919
with:
2020
use-quiet-mode: 'yes'
2121
config-file: .markdownlinkcheck.json

.github/workflows/lint-docs-weekly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
name: Broken Links
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v3
16-
- uses: gaurav-nelson/github-action-markdown-link-check@v1
15+
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2
16+
- uses: gaurav-nelson/github-action-markdown-link-check@5c5dfc0ac2e225883c0e5f03a85311ec2830d368 # tag=v1
1717
with:
1818
use-quiet-mode: 'yes'
1919
config-file: .markdownlinkcheck.json

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ jobs:
1717
- name: Set env
1818
run: echo "RELEASE_TAG=${GITHUB_REF:10}" >> $GITHUB_ENV
1919
- name: checkout code
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2
2121
with:
2222
fetch-depth: 0
2323
- name: Install go
24-
uses: actions/setup-go@v3
24+
uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f # tag=v3.3.0
2525
with:
2626
go-version: '^1.19'
2727
- name: generate release artifacts
@@ -31,7 +31,7 @@ jobs:
3131
run: |
3232
make release-notes
3333
- name: Release
34-
uses: softprops/action-gh-release@v1
34+
uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5 # tag=v1
3535
with:
3636
draft: true
3737
files: out/*

0 commit comments

Comments
 (0)