Skip to content

Commit

Permalink
[StepSecurity] ci: Harden GitHub Actions (#7399)
Browse files Browse the repository at this point in the history
Signed-off-by: StepSecurity Bot <bot@stepsecurity.io>
  • Loading branch information
step-security-bot authored Oct 23, 2024
1 parent 909a6e7 commit 8940db3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/update-trivy-db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@ jobs:
update-trivy-db:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit

- name: Setup oras
uses: oras-project/setup-oras@v1
uses: oras-project/setup-oras@9c92598691bfef1424de2f8fae81941568f5889c # v1.2.1

- name: Get current date
id: date
Expand All @@ -26,7 +31,7 @@ jobs:
rm db.tar.gz
- name: Cache DBs
uses: actions/cache/save@v4
uses: actions/cache/save@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
with:
path: ${{ github.workspace }}/.cache/trivy
key: cache-trivy-${{ steps.date.outputs.date }}

0 comments on commit 8940db3

Please sign in to comment.