Skip to content

Commit

Permalink
added security scans
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip3mac committed Jan 16, 2024
1 parent b2c6cfc commit b57e19f
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.


name: trivy

on:
push:
branches: [ "main", "ckan-2.8" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main", "ckan-2.8" ]
schedule:
- cron: '28 3 * * 5'

permissions:
contents: read

jobs:
repo_scan:
name: repo_scan
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Run Trivy vulnerability scanner in repo mode
uses: aquasecurity/trivy-action@master
with:
scan-type: 'fs'
ignore-unfixed: true
format: 'sarif'
output: 'trivy-results-repo.sarif'
severity: 'CRITICAL'

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: 'trivy-results-repo.sarif'

0 comments on commit b57e19f

Please sign in to comment.