Skip to content

Commit

Permalink
Merge pull request #278 from Opetushallitus/feature/OPHKIOS-130
Browse files Browse the repository at this point in the history
OPHKIOS-130: Päivittäinen Trivy-skannaus
  • Loading branch information
lket authored Jan 17, 2025
2 parents 429c8c2 + eb80673 commit eb20792
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Trivy

on:
schedule:
# Schedule execution daily at 7:23 am (UTC).
- cron: "23 07 * * *"

jobs:
trivy-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Scan vulnerabilities with Trivy
uses: aquasecurity/trivy-action@0.29.0
with:
scan-type: 'repo'
scanners: 'vuln'
ignore-unfixed: true
format: 'sarif'
output: 'trivy-results.sarif'
severity: 'CRITICAL,HIGH,MEDIUM,LOW'
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-results.sarif'

0 comments on commit eb20792

Please sign in to comment.