Skip to content

Commit

Permalink
fix(ci): removed default running directory, fix template name
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzodagostinoradicalbit committed Jun 26, 2024
1 parent eac1c79 commit 6aa4651
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 6aa4651

Please sign in to comment.