Skip to content

Feat: Add podLabels #31

Feat: Add podLabels

Feat: Add podLabels #31

Workflow file for this run

name: checkov
on:
# this can be trigger based on both master and main branch.
push:
branches: [ "main", "master" ]
pull_request:
branches: [ "main", "master" ]
workflow_dispatch:
jobs:
checkov:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Installing checkov
run: |
sudo apt-get update
sudo apt install python3-pip -y
sudo pip install checkov
- name: Scanning helmchart for Security Vulnerabilities
env:
HELMCHART_DIRECTORY: "./charts/helmchart"
OVERRIDE_VALUE_FILE_PATH: "./charts/helmchart/config/override-values.yaml"
CHART_NAME: "helmchart"
run: |
helm template helm-chart $HELMCHART_DIRECTORY -f $OVERRIDE_VALUE_FILE_PATH --namespace not-default --output-dir /tmp/helm-template
rm -rf /tmp/helm-template/$CHART_NAME/templates/tests
checkov -d /tmp/helm-template/$CHART_NAME
continue-on-error: true