38 lines
871 B
YAML
38 lines
871 B
YAML
name: trivy
|
|
|
|
on:
|
|
# schedule:
|
|
# - cron: '59 11 * * *'
|
|
workflow_dispatch:
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
trivy:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
security-events: write
|
|
|
|
strategy:
|
|
matrix:
|
|
tag:
|
|
- latest
|
|
- full
|
|
|
|
steps:
|
|
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
|
|
with:
|
|
show-progress: false
|
|
|
|
- uses: aquasecurity/trivy-action@e5f43133f6e8736992c9f3c1b3296e24b37e17f2 # 0.10.0
|
|
with:
|
|
image-ref: ghcr.io/renovatebot/renovate:${{ matrix.tag }}
|
|
format: 'sarif'
|
|
output: 'trivy-results.sarif'
|
|
|
|
- uses: github/codeql-action/upload-sarif@b7cec7526559c32f1616476ff32d17ba4c59b2d6 # v3.25.5
|
|
with:
|
|
sarif_file: trivy-results.sarif
|
|
category: 'docker-image-${{ matrix.tag }}'
|