Skip to content

Commit

Permalink
fix(build): trivy sha (#9)
Browse files Browse the repository at this point in the history
* fix(build): add short sha for trivy

* add sha prefix

* checkout git to create to be able to create sha
  • Loading branch information
kengou authored Sep 16, 2024
1 parent 9265810 commit 7dae9fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,11 @@ jobs:
needs: build
runs-on: [ default ]
steps:
- name: checkout
uses: actions/checkout@v4
- name: Set sha
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
run: echo "sha_short=sha-$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
if: success()
Expand Down

0 comments on commit 7dae9fb

Please sign in to comment.