Skip to content

Commit

Permalink
Merge pull request #17 from radicalbit/fix/trivy-scan
Browse files Browse the repository at this point in the history
fix(ci): removed default running directory, fix template name
  • Loading branch information
lorenzodagostinoradicalbit authored Jun 26, 2024
2 parents eac1c79 + 6aa4651 commit 4493e23
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/trivy-fs-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ jobs:
run-scan:
name: Run Trivy vulnerability scanner
runs-on: ubuntu-22.04
defaults:
run:
working-directory: ${{ inputs.directory }}
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -56,11 +53,12 @@ jobs:
scan-type: 'fs'
ignore-unfixed: true
format: 'template'
template: 'trivy-pr-comment.tpl'
template: '@trivy-pr-comment.tpl'
output: 'trivy.json'
severity: ${{ inputs.severity }}
skip-dirs: ${{ inputs.skip_dirs }}
exit-code: ${{ inputs.prcomment && '1' || '0' }}
scan-ref: '${{ inputs.directory }}'

- name: Report vulnerabilities in PR
if: ${{ inputs.prcomment && failure() && steps.scan.outcome == 'failure' }}
Expand Down

0 comments on commit 4493e23

Please sign in to comment.