Skip to content

Commit

Permalink
chart security scan (#145)
Browse files Browse the repository at this point in the history
* feat: add stale workflow for issues

* feat: add trivy to scan chart
  • Loading branch information
saidsef authored Feb 5, 2024
1 parent 5b58d1b commit 3cbe476
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/stale.yml

This file was deleted.

11 changes: 11 additions & 0 deletions .github/workflows/charts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,17 @@ jobs:
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
continue-on-error: true
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
scan-type: 'config'
scan-ref: '.'
format: 'sarif'
output: 'trivy-results.sarif'
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-results.sarif'

k8s-test:
runs-on: ubuntu-latest
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: 'Close stale issues'
on:
schedule:
- cron: '30 3 * * *'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
stale-issue-message: 'This issue is stale because it has been open 15 days with no activity. Remove stale label or comment or this will be closed in 5 days.'
days-before-stale: 15
days-before-close: 5

0 comments on commit 3cbe476

Please sign in to comment.