-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[StepSecurity] ci: Harden GitHub Actions (#3304)
Signed-off-by: StepSecurity Bot <[email protected]> Co-authored-by: Nurlan Moldomurov <[email protected]>
- Loading branch information
1 parent
666f72a
commit 8e1f503
Showing
16 changed files
with
97 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,16 +19,16 @@ jobs: | |
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
|
||
- name: Set up Go release | ||
uses: actions/setup-go@v5 | ||
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 | ||
with: | ||
go-version-file: ${{ github.workspace }}/go.mod | ||
cache: false | ||
|
||
- name: Enable Go build cache | ||
uses: actions/cache@v4 | ||
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 | ||
with: | ||
path: ~/.cache/go-build | ||
key: ${{ runner.os }}-go-build-${{ github.ref }}-${{ hashFiles('**') }} | ||
|
@@ -37,7 +37,7 @@ jobs: | |
${{ runner.os }}-go-build- | ||
- name: Enable Go modules cache | ||
uses: actions/cache@v4 | ||
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-modules-${{ hashFiles('**/go.sum') }} | ||
|
@@ -81,7 +81,7 @@ jobs: | |
run: bin/go-sumtype ./... | ||
|
||
- name: Run linters | ||
uses: reviewdog/action-golangci-lint@v2 | ||
uses: reviewdog/action-golangci-lint@7708105983c614f7a2725e2172908b7709d1c3e4 # v2.6.2 | ||
with: | ||
github_token: ${{ secrets.ROBOT_TOKEN || secrets.GITHUB_TOKEN }} | ||
go_version_file: ${{ github.workspace }}/go.mod | ||
|
@@ -127,7 +127,7 @@ jobs: | |
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Run Merge Gatekeeper | ||
uses: upsidr/[email protected] | ||
uses: upsidr/merge-gatekeeper@09af7a82c1666d0e64d2bd8c01797a0bcfd3bb5d # v1.2.1 | ||
with: | ||
self: Merge Gatekeeper | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -151,7 +151,7 @@ jobs: | |
|
||
steps: | ||
- name: Slack Notification | ||
uses: rtCamp/[email protected] | ||
uses: rtCamp/action-slack-notify@c33737706dea87cd7784c687dadc9adf1be59990 # v2.3.2 | ||
|
||
workflow_failure: | ||
if: ${{ failure() }} | ||
|
@@ -169,4 +169,4 @@ jobs: | |
|
||
steps: | ||
- name: Slack Notification | ||
uses: rtCamp/[email protected] | ||
uses: rtCamp/action-slack-notify@c33737706dea87cd7784c687dadc9adf1be59990 # v2.3.2 |
Oops, something went wrong.