Skip to content

Feature/tiered storage #3920

Feature/tiered storage

Feature/tiered storage #3920

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: trivy
permissions: {}
on:
workflow_dispatch:
inputs:
run:
description: "Run the workflow"
required: true
default: true
type: boolean
push:
branches:
- main
pull_request:
schedule:
# every Monday at 7:31pm
- cron: "31 19 * * 1"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
scan:
name: Build
runs-on: "ubuntu-latest"
permissions:
security-events: write # Needed to upload the analysis results
steps:
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Trivy Vulnerability Scan
uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # 0.36.0
with:
scan-type: "fs"
# lower severity threshold (so we don't crash for PGP)
severity: "MEDIUM,HIGH,CRITICAL"
# Apply the severity filter to the SARIF report and the exit code
limit-severities-for-sarif: true
scan-ref: "."
scanners: "vuln"
format: "sarif"
output: "trivy-results.sarif"
exit-code: 1
- name: Trivy License Scan
uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # 0.36.0
with:
scan-type: "fs"
severity: "HIGH,CRITICAL"
scan-ref: "."
scanners: "license"
exit-code: 1
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v4.37.9
with:
sarif_file: "trivy-results.sarif"