From 870d9813b5c10301aab5d6d8d126e006c0d86f2f Mon Sep 17 00:00:00 2001 From: pmacius Date: Mon, 23 Sep 2024 15:47:53 +0200 Subject: [PATCH] OPSEXP-2121 Add kics scan --- .github/workflows/kics.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/kics.yml diff --git a/.github/workflows/kics.yml b/.github/workflows/kics.yml new file mode 100644 index 00000000..661b54df --- /dev/null +++ b/.github/workflows/kics.yml @@ -0,0 +1,27 @@ +name: kics + +on: + pull_request: + branches: [main] + +permissions: + pull-requests: write + +jobs: + kics: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + - name: run kics Scan + uses: checkmarx/kics-github-action@530ac1f8efe6202b0f12c9a6e952597ae707b755 # v2.1.2 + with: + path: 'charts' + ignore_on_exit: results + output_path: report-dir/ + output_formats: 'sarif' + token: ${{ secrets.GITHUB_TOKEN }} + enable_comments: true + - name: Upload SARIF file + uses: github/codeql-action/upload-sarif@323f5ef653b88011bf10e9a0a56d70d742463c9a # v3.26.8 + with: + sarif_file: report-dir/results.sarif