Skip to content

Commit

Permalink
Merge pull request #108 from keitaroinc/security_action
Browse files Browse the repository at this point in the history
ignored datapusher chart
  • Loading branch information
Filip3mac authored Jan 15, 2024
2 parents 6b2f489 + 819ccf8 commit 329a935
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,28 @@ permissions:
contents: read

jobs:
chart-test:
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'

ckan-helm-scan:
permissions:
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
Expand All @@ -46,12 +67,12 @@ jobs:
with:
scan-type: 'config'
hide-progress: false
format: 'sarif'
scan-ref: '.'
output: 'trivy-results.sarif'
format: 'sarif'
output: 'trivy-results-helm.sarif'
ignore-unfixed: true

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

0 comments on commit 329a935

Please sign in to comment.