2022-03-29 14:17:20 +00:00
|
|
|
name: Trivy
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
2022-03-30 13:59:34 +00:00
|
|
|
- cron: "0 6 * * *"
|
2022-03-29 14:17:20 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
quarkus-dist:
|
|
|
|
name: Vulnerability scanner for Quarkus distribution images
|
|
|
|
runs-on: "ubuntu-18.04"
|
|
|
|
steps:
|
|
|
|
- name: Run Trivy vulnerability scanner
|
2022-08-20 15:14:18 +00:00
|
|
|
uses: aquasecurity/trivy-action@d63413b0a4a4482237085319f7f4a1ce99a8f2ac
|
2022-03-29 14:17:20 +00:00
|
|
|
with:
|
|
|
|
image-ref: 'quay.io/keycloak/keycloak:nightly'
|
|
|
|
format: 'template'
|
|
|
|
template: '@/contrib/sarif.tpl'
|
|
|
|
output: 'trivy-results.sarif'
|
|
|
|
severity: 'MEDIUM,CRITICAL,HIGH'
|
|
|
|
ignore-unfixed: true
|
|
|
|
|
|
|
|
- name: Upload Trivy scan results to GitHub Security tab
|
2022-11-03 05:08:32 +00:00
|
|
|
uses: github/codeql-action/upload-sarif@v2.1.29
|
2022-03-29 14:17:20 +00:00
|
|
|
with:
|
|
|
|
sarif_file: 'trivy-results.sarif'
|
|
|
|
|
|
|
|
legacy-dist:
|
|
|
|
name: Vulnerability scanner for WildFly distribution images
|
|
|
|
runs-on: "ubuntu-18.04"
|
|
|
|
steps:
|
|
|
|
- name: Run Trivy vulnerability scanner
|
2022-08-20 15:14:18 +00:00
|
|
|
uses: aquasecurity/trivy-action@d63413b0a4a4482237085319f7f4a1ce99a8f2ac
|
2022-03-29 14:17:20 +00:00
|
|
|
with:
|
|
|
|
image-ref: 'quay.io/keycloak/keycloak:legacy'
|
|
|
|
format: 'template'
|
|
|
|
template: '@/contrib/sarif.tpl'
|
|
|
|
output: 'legacy-results.sarif'
|
|
|
|
severity: 'MEDIUM,CRITICAL,HIGH'
|
|
|
|
ignore-unfixed: true
|
|
|
|
|
|
|
|
- name: Upload Trivy scan results to GitHub Security tab
|
2022-11-03 05:08:32 +00:00
|
|
|
uses: github/codeql-action/upload-sarif@v2.1.29
|
2022-03-29 14:17:20 +00:00
|
|
|
with:
|
|
|
|
sarif_file: 'legacy-results.sarif'
|
|
|
|
|
|
|
|
keycloak-operator:
|
|
|
|
name: Vulnerability scanner for Keycloak Operator distribution images
|
|
|
|
runs-on: "ubuntu-18.04"
|
|
|
|
steps:
|
|
|
|
- name: Run Trivy vulnerability scanner
|
2022-08-20 15:14:18 +00:00
|
|
|
uses: aquasecurity/trivy-action@d63413b0a4a4482237085319f7f4a1ce99a8f2ac
|
2022-03-29 14:17:20 +00:00
|
|
|
with:
|
|
|
|
image-ref: 'quay.io/keycloak/keycloak-operator:nightly'
|
|
|
|
format: 'template'
|
|
|
|
template: '@/contrib/sarif.tpl'
|
|
|
|
output: 'operator-results.sarif'
|
|
|
|
severity: 'MEDIUM,CRITICAL,HIGH'
|
|
|
|
ignore-unfixed: true
|
|
|
|
|
|
|
|
- name: Upload Trivy scan results to GitHub Security tab
|
2022-11-03 05:08:32 +00:00
|
|
|
uses: github/codeql-action/upload-sarif@v2.1.29
|
2022-03-29 14:17:20 +00:00
|
|
|
with:
|
|
|
|
sarif_file: 'operator-results.sarif'
|