Skip to content

build(deps): bump github/codeql-action from 3.24.3 to 3.24.4 #64

build(deps): bump github/codeql-action from 3.24.3 to 3.24.4

build(deps): bump github/codeql-action from 3.24.3 to 3.24.4 #64

Workflow file for this run

name: Trivy Container Scan
on:
push:
branches: [ main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
permissions:
contents: read
security-events: write
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.0.0
- name: Build the Docker image
run: docker build . --file Dockerfile --tag app:${{ github.sha }}
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@84384bd6e777ef152729993b8145ea352e9dd3ef # master
with:
image-ref: 'app:${{ github.sha }}'
format: 'sarif'
output: 'trivy-results.sarif'
exit-code: '1'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL'
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@e2e140ad1441662206e8f97754b166877dfa1c73 # v3.24.4
if: always()
with:
sarif_file: 'trivy-results.sarif'