Skip to content

Merge pull request #157 from k1LoW/dependabot/github_actions/dependen… #501

Merge pull request #157 from k1LoW/dependabot/github_actions/dependen…

Merge pull request #157 from k1LoW/dependabot/github_actions/dependen… #501

Workflow file for this run

name: trivy
on:
push:
branches:
- main
pull_request:
jobs:
job-trivy:
name: Run trivy for license check
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Check out source code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
- name: Run trivy
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # 0.35.0
with:
scan-type: 'fs'
scanners: 'license'
target: '.'
format: 'table'
exit-code: '1'
severity: 'UNKNOWN,MEDIUM,HIGH'