Skip to content

test: initial service test #20

test: initial service test

test: initial service test #20

Workflow file for this run

name: build
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/[email protected]
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/[email protected]
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