058538ca08
This reverts commit 61c6bd5ace
.
35 lines
915 B
YAML
35 lines
915 B
YAML
name: Trivy
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
|
|
jobs:
|
|
|
|
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
|
|
steps:
|
|
- name: Run Trivy vulnerability scanner
|
|
uses: aquasecurity/trivy-action@6e7b7d1fd3e4fef0c5fa8cce1229c54b2c9bd0d8
|
|
with:
|
|
image-ref: quay.io/keycloak/${{ matrix.container}}:nightly
|
|
format: sarif
|
|
output: trivy-results.sarif
|
|
severity: MEDIUM,CRITICAL,HIGH
|
|
ignore-unfixed: true
|
|
timeout: 15m
|
|
|
|
- name: Upload Trivy scan results to GitHub Security tab
|
|
uses: github/codeql-action/upload-sarif@v3
|
|
with:
|
|
sarif_file: trivy-results.sarif
|
|
category: ${{ matrix.container}}
|