2022-03-29 14:17:20 +00:00
|
|
|
name: Trivy
|
2022-12-14 15:12:23 +00:00
|
|
|
|
2022-03-29 14:17:20 +00:00
|
|
|
on:
|
2022-12-14 15:12:23 +00:00
|
|
|
workflow_dispatch:
|
2022-03-29 14:17:20 +00:00
|
|
|
|
2022-12-14 15:12:23 +00:00
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: bash
|
2022-03-29 14:17:20 +00:00
|
|
|
|
2022-12-14 15:12:23 +00:00
|
|
|
jobs:
|
2022-03-29 14:17:20 +00:00
|
|
|
|
2022-12-14 15:12:23 +00:00
|
|
|
analysis:
|
|
|
|
name: Vulnerability scanner for nightly containers
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: github.repository == 'keycloak/keycloak'
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
container: [keycloak, keycloak-operator]
|
|
|
|
fail-fast: false
|
2022-03-29 14:17:20 +00:00
|
|
|
steps:
|
|
|
|
- name: Run Trivy vulnerability scanner
|
2024-06-03 11:15:48 +00:00
|
|
|
uses: aquasecurity/trivy-action@fd25fed6972e341ff0007ddb61f77e88103953c2
|
2022-03-29 14:17:20 +00:00
|
|
|
with:
|
2022-12-14 15:12:23 +00:00
|
|
|
image-ref: quay.io/keycloak/${{ matrix.container}}:nightly
|
2024-02-24 10:44:10 +00:00
|
|
|
format: sarif
|
2022-12-14 15:12:23 +00:00
|
|
|
output: trivy-results.sarif
|
|
|
|
severity: MEDIUM,CRITICAL,HIGH
|
2022-03-29 14:17:20 +00:00
|
|
|
ignore-unfixed: true
|
2023-02-09 15:30:49 +00:00
|
|
|
timeout: 15m
|
2022-03-29 14:17:20 +00:00
|
|
|
|
|
|
|
- name: Upload Trivy scan results to GitHub Security tab
|
2024-01-02 11:47:02 +00:00
|
|
|
uses: github/codeql-action/upload-sarif@v3
|
2022-03-29 14:17:20 +00:00
|
|
|
with:
|
2022-12-14 15:12:23 +00:00
|
|
|
sarif_file: trivy-results.sarif
|
2024-02-24 10:44:10 +00:00
|
|
|
category: ${{ matrix.container}}
|