Skip to content

Commit

Permalink
Merge pull request #772 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 8d6e7fd + 7713910 commit c02c15e
Show file tree
Hide file tree
Showing 2 changed files with 34 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/[email protected]
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'
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,3 +280,12 @@ and push the tag to remote repository
```sh
git push origin AKR-ga-1234
```

## Security

### Vulnerabilities

Vulnerabilities in dependencies used by the applications are scanned daily with [Trivy](https://trivy.dev/latest/ecosystem/cicd/#trivy-action-official).
The scan is performed only against the default branch of the repository.

Results of the scan are uploaded to the GitHub Security tab and are found under the section [Code scanning](https://github.com/Opetushallitus/kieli-ja-kaantajatutkinnot/security/code-scanning). The results are only available to GitHub users belonging to the Opetushallitus organization.

0 comments on commit c02c15e

Please sign in to comment.