Skip to content

Increase reserve-vram to 5.0 after testing #77

Increase reserve-vram to 5.0 after testing

Increase reserve-vram to 5.0 after testing #77

Workflow file for this run

name: Trivy
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
jobs:
trivy-scan:
name: Trivy Scan
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run Trivy vulnerability scanner in repo mode
uses: aquasecurity/trivy-action@0.28.0
with:
scan-type: 'fs'
ignore-unfixed: true
format: 'sarif'
output: 'trivy-results.sarif'
severity: 'CRITICAL, HIGH, MEDIUM, LOW'
- name: Upload trivy results
uses: actions/upload-artifact@v4
with:
name: trivy-results
path: trivy-results.sarif
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-results.sarif'
trivy-sbom:
name: Trivy dependency map
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run Trivy in GitHub SBOM mode and submit results to Dependency Graph
uses: aquasecurity/trivy-action@0.28.0
with:
scan-type: 'fs'
format: 'spdx'
output: 'dependency-results.sbom.json'
image-ref: '.'
github-pat: ${{ secrets.GITHUB_TOKEN }}
env:
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db,aquasec/trivy-db,ghcr.io/aquasecurity/trivy-db
- name: Upload trivy dependency map
uses: actions/upload-artifact@v4
with:
name: trivy-dependencies
path: dependency-results.sbom.json