From bfd31cbc6bce4da35f7b9cf08c4aef62f8552f0e Mon Sep 17 00:00:00 2001 From: pmacius Date: Wed, 25 Sep 2024 15:31:23 +0200 Subject: [PATCH] OPSEXP-2121 Add kics scan --- .github/workflows/kics.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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..013830f3 --- /dev/null +++ b/.github/workflows/kics.yml @@ -0,0 +1,32 @@ +name: kics + +on: + pull_request: + branches: [main] + push: + branches: [main] + +permissions: + security-events: 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: './' + ignore_on_exit: results + output_path: report-dir/ + output_formats: 'pdf' + token: ${{ secrets.GITHUB_TOKEN }} + enable_jobs_summary: true + platform_type: docker + disable_secrets: true + - name: Upload KICS Report + uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 + with: + path: report-dir/results.pdf + name: kics-report