Update Enterprise Version to 2024.10.1 #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check with Kics and release if successful | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- "charts/**" | |
jobs: | |
kics-job: | |
runs-on: ubuntu-latest | |
name: kics-github-action | |
steps: | |
- name: 'Checkout Helm chart' | |
uses: actions/checkout@v4 | |
- name: 'Make reports directory' | |
run: mkdir -p reports | |
- id: kics | |
name: 'KICS Github Action' | |
uses: checkmarx/[email protected] | |
with: | |
path: "./charts/helm-chart" | |
output_path: "./reports" | |
output_formats: "json,html" | |
fail_on: high | |
type: "Kubernetes" | |
exclude_paths: "./sample-ingress" | |
exclude_results: "93112a21fc479a3b323d03f921f53d86fdf73ece7b819aa98764b4f2e666858b" | |
- name: Display kics results | |
if: always() | |
run: | | |
cat reports/results.json | |
- name: 'Upload reports' | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Kics report | |
path: ./reports/ | |
release-job: | |
needs: kics-job | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Configure Git | |
run: | | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "[email protected]" | |
- name: Install Helm | |
uses: azure/setup-helm@v3 | |
- name: Release | |
if: ${{ github.ref == 'refs/heads/main' }} | |
uses: helm/[email protected] | |
env: | |
CR_SKIP_EXISTING: "true" | |
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |