Skip to content

Commit

Permalink
Add chart scanning to helm workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ppawlowski committed Dec 20, 2023
1 parent 9a3f5e2 commit 7602b20
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/helm-chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,40 @@ jobs:
- name: Validate chart
run: |
helm template flowforge ./helm/flowforge | kubectl apply --validate=true -f -
scan:
name: Scan chart
runs-on: ubuntu-latest
permissions:
security-events: write

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install Helm
uses: azure/[email protected]
with:
version: v3.13.2

- name: Template chart
run: |
helm template flowforge ./helm/flowforge > ${{ github.workspace }}/templated_chart.yaml
- name: "[checkov] Scan chart"
uses: bridgecrewio/checkov-action@v12
with:
directory: ${{ github.workspace }}
file: templated_chart.yaml
framework: kubernetes
output_format: cli,sarif
output_file_path: console,results.sarif
soft_fail: true

- name: "[checkov] Upload SARIF file"
if: success() || failure()
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif

0 comments on commit 7602b20

Please sign in to comment.