Skip to content

chore(deps): update kubernetes monorepo to v0.36.3 #158

chore(deps): update kubernetes monorepo to v0.36.3

chore(deps): update kubernetes monorepo to v0.36.3 #158

Workflow file for this run

name: Trivy
on:
pull_request:
branches:
- main
push:
branches:
- main
permissions:
contents: read
jobs:
scan:
name: Vulnerability Scan
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write # Required to upload SARIF to the GitHub Security tab
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
# On pull requests, fail the job when HIGH/CRITICAL issues are found so
# they surface directly in the PR checks.
- name: Run Trivy (pull request)
if: github.event_name == 'pull_request'
uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
with:
scan-type: fs
scan-ref: .
format: table
severity: HIGH,CRITICAL
ignore-unfixed: true
exit-code: 1
# On release, generate a SARIF report and upload it to the GitHub
# Security tab instead of failing the release.
- name: Run Trivy (release)
if: github.event_name == 'push'
uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
with:
scan-type: fs
scan-ref: .
format: sarif
output: trivy-results.sarif
ignore-unfixed: true
- name: Upload Trivy results to GitHub Security tab
if: github.event_name == 'push'
uses: github/codeql-action/upload-sarif@dd903d2e4f5405488e5ef1422510ee31c8b32357 # v3
with:
sarif_file: trivy-results.sarif