Skip to content

Commit

Permalink
OPSEXP-2121 Add kics scan (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmacius authored Sep 25, 2024
1 parent 8e7d1fa commit 2e11526
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ on:
paths-ignore:
- 'Makefile'
- '.github/workflows/test-make.yml'
- '.github/workflows/kics.yml'
- 'README.md'
pull_request:
branches:
- main
paths-ignore:
- 'Makefile'
- '.github/workflows/test-make.yml'
- '.github/workflows/kics.yml'
- 'README.md'

env:
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/kics.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: kics

on:
pull_request:
branches: [main]
push:
branches: [main]

permissions:
security-events: write
contents: 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/
token: ${{ secrets.BOT_GITHUB_TOKEN }}
enable_jobs_summary: true
platform_type: dockerfile
disable_secrets: true
- name: Upload SARIF file # Remove 'if' statement after making repo public; also add 'output_formats: 'sarif'' to the KICS action
if: false
uses: github/codeql-action/upload-sarif@323f5ef653b88011bf10e9a0a56d70d742463c9a # v3.26.8
with:
sarif_file: report-dir/results.sarif

0 comments on commit 2e11526

Please sign in to comment.