Skip to content

Commit

Permalink
ci(github): harden GitHub Actions (#8786)
Browse files Browse the repository at this point in the history
* ci: Harden GitHub Actions [StepSecurity] 

Signed-off-by: StepSecurity Bot <[email protected]>
  • Loading branch information
step-security-bot authored Jan 9, 2024
1 parent e25cdfb commit f0fff41
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-test-distribute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
rm -rf ./build/oapitmp
rm -rf ./build/ebpf/
- name: Upload build output
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0
with:
name: build-output
path: build
Expand Down Expand Up @@ -209,7 +209,7 @@ jobs:
${{ runner.os }}-${{ runner.arch }}-devtools
# FIXME: Workaround for Request Timeout issue of artifacts https://github.com/actions/download-artifact/issues/249
- name: Download artifacts with retry
uses: Wandalen/wretry.action@master
uses: Wandalen/wretry.action@a163f62ae554a8f3cbe27b23db15b60c0ae2e93c # master
with:
action: actions/download-artifact@v4
with: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- opened
- reopened
- synchronized
permissions:
contents: read
jobs:
# This job checks the PR title using
# https://github.com/conventional-changelog/commitlint
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: "CodeQL"
on:
push:
branches: ["master"]
permissions:
contents: read
jobs:
analyze:
name: Analyze
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
# FIXME: Workaround for Request Timeout issue of artifacts https://github.com/actions/download-artifact/issues/249
- name: "GitHub Actions: download build artifacts with retry"
if: steps.eval-params.outputs.run-type == 'github'
uses: Wandalen/wretry.action@master
uses: Wandalen/wretry.action@a163f62ae554a8f3cbe27b23db15b60c0ae2e93c # master
with:
action: actions/download-artifact@v4
with: |
Expand Down

0 comments on commit f0fff41

Please sign in to comment.