Skip to content

Merge pull request #1 from m-mizutani/init #8

Merge pull request #1 from m-mizutani/init

Merge pull request #1 from m-mizutani/init #8

Workflow file for this run

name: Trivy
on: [push]
jobs:
scan:
runs-on: ubuntu-latest
permissions:
security-events: write
actions: read
contents: read
steps:
- name: Checkout upstream repo
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Run Trivy vulnerability scanner in repo mode
uses: aquasecurity/trivy-action@master
with:
scan-type: "fs"
ignore-unfixed: true
format: "template"
template: "@/contrib/sarif.tpl"
output: "trivy-results.sarif"
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: "trivy-results.sarif"