Skip to content

Commit

Permalink
ci: Run checkov against helm chart directory instead of templated yaml (
Browse files Browse the repository at this point in the history
  • Loading branch information
hardillb committed Feb 5, 2024
2 parents c07e8f1 + 341f645 commit c1bb99e
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/helm-chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,21 +101,23 @@ jobs:
uses: azure/setup-helm@v3.5
with:
version: v3.13.2

- name: Template chart
run: |
helm template flowforge ./helm/flowforge --set forge.domain=example.com > ${{ github.workspace }}/templated_chart.yaml

- name: Scan chart with checkov
if: matrix.tool == 'checkov'
uses: bridgecrewio/checkov-action@v12
uses: bridgecrewio/checkov-action@v12.2655.0
with:
directory: ${{ github.workspace }}
file: templated_chart.yaml
framework: kubernetes
directory: ${{ github.workspace }}/helm
var_file: ${{ github.workspace }}/helm/flowforge/ci/default-values.yaml
framework: helm
output_format: cli,sarif
output_file_path: console,results.sarif
soft_fail: true

- name: Template chart
# temporary disabled due to https://github.com/zegl/kube-score/issues/559
if: false
run: |
helm template flowforge ./helm/flowforge --set forge.domain=example.com > ${{ github.workspace }}/templated_chart.yaml
- name: Install kube-score
# temporary disabled due to https://github.com/zegl/kube-score/issues/559
Expand Down

0 comments on commit c1bb99e

Please sign in to comment.