Update test.yml to run on dispatch #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Trivy Scan | |
on: | |
pull_request: | |
jobs: | |
trivy-code-security-scan: | |
runs-on: ubuntu-latest | |
name: Trivy | |
steps: | |
- name: Checkout | |
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4 | |
- name: Security Scan | |
uses: aquasecurity/trivy-action@595be6a0f6560a0a8fc419ddf630567fc623531d # 0.22.0 | |
with: | |
scan-type: 'fs' | |
scanners: vuln,secret | |
exit-code: 1 | |
ignore-unfixed: true |