Skip to content

[tests] (#573) Add option to install type definitions for the unit test framework based on the project configuration #161

[tests] (#573) Add option to install type definitions for the unit test framework based on the project configuration

[tests] (#573) Add option to install type definitions for the unit test framework based on the project configuration #161

Workflow file for this run

name: Trivy
on:
push:
branches:
- main
pull_request:
jobs:
build:
name: Run vulnerability scan
runs-on: ubuntu-22.04
env:
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db,aquasec/trivy-db,ghcr.io/aquasecurity/trivy-db
TRIVY_JAVA_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-java-db,aquasec/trivy-java-db,ghcr.io/aquasecurity/trivy-java-db
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run Trivy vulnerability scanner in fs mode
uses: aquasecurity/[email protected]
with:
scan-type: 'fs'
scan-ref: '.'
trivy-config: .github/trivy.yml
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-results.sarif'