mirror of https://github.com/renovatebot/renovate
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
with:
|
|
show-progress: false
|
|
|
|
- uses: aquasecurity/trivy-action@915b19bbe73b92a6cf82a1bc12b087c9a19a5fe2 # 0.28.0
|
|
with:
|
|
image-ref: ghcr.io/renovatebot/renovate:${{ matrix.tag }}
|
|
format: 'sarif'
|
|
output: 'trivy-results.sarif'
|
|
|
|
- uses: github/codeql-action/upload-sarif@662472033e021d55d94146f66f6058822b0b39fd # v3.27.0
|
|
with:
|
|
sarif_file: trivy-results.sarif
|
|
category: 'docker-image-${{ matrix.tag }}'
|