Fix trivy scan (#5967)

This PR fixes trivy scan caused by recent change in upsteam

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
Yong Tang
2023-03-13 11:31:24 -07:00
committed by GitHub
parent 1c09052493
commit 1258e3b2f2

View File

@@ -1,7 +1,7 @@
name: Trivy Nightly Scan name: Trivy Nightly Scan
on: on:
schedule: schedule:
- cron: '0 2 * * 5' #Run at 2AM UTC on every Friday - cron: '0 2 * * 5' # Run at 2AM UTC on every Friday
permissions: read-all permissions: read-all
jobs: jobs:
@@ -24,8 +24,7 @@ jobs:
with: with:
image-ref: 'docker.io/coredns/coredns:${{ matrix.versions }}' image-ref: 'docker.io/coredns/coredns:${{ matrix.versions }}'
severity: 'CRITICAL,HIGH' severity: 'CRITICAL,HIGH'
format: 'template' format: 'sarif'
template: '@/contrib/sarif.tpl'
output: 'trivy-results.sarif' output: 'trivy-results.sarif'
- name: Upload Trivy scan results to GitHub Security tab - name: Upload Trivy scan results to GitHub Security tab