Docker Image Scan #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Image Scan | |
on: | |
schedule: | |
- cron: '0 0 * * 1' # Jeden Montag um 00:00 Uhr | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- Samples/PublicSamples/RecordingBot/** | |
jobs: | |
scan: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Run Trivy Scan | |
uses: aquasecurity/[email protected] | |
with: | |
image-ref: 'ghcr.io/lm-development/aks-sample/aks-sample:latest' | |
format: 'sarif' | |
output: 'trivy-results.sarif' | |
- name: Upload Trivy scan results to GitHub Security tab | |
uses: github/codeql-action/upload-sarif@v2 | |
with: | |
sarif_file: 'trivy-results.sarif' |