Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions .github/workflows/Trivy-secrete-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,24 @@ on:

permissions:
actions: read
contents: read
security-events: write

jobs:
code-scanning:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v7

- name: Run Trivy
env:
TRIVY_IGNORE_UNFIXED: true
TRIVY_SEVERITY: CRITICAL
TRIVY_FORMAT: sarif
TRIVY_OUTPUT: trivy-results.sarif
run: |
trivy fs --ignore-unfixed --severity CRITICAL --format sarif --output trivy-results.sarif .
uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
with:
scan-type: fs
ignore-unfixed: true
severity: CRITICAL
format: sarif
output: trivy-results.sarif

- name: Upload SARIF
uses: github/codeql-action/upload-sarif@v3
Expand Down
Loading