Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OPSEXP-2121 Add kics scan #947

Merged
merged 12 commits into from
Sep 25, 2024
36 changes: 36 additions & 0 deletions .github/workflows/kics.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: kics

on:
pull_request:
branches: [master]
paths:
- 'playbooks/**'
- 'roles/**'
- '.github/workflows/kics.yml'
push:
branches: [master]
paths:
- 'playbooks/**'
- 'roles/**'
- '.github/workflows/kics.yml'

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: 'playbooks,roles'
pmacius marked this conversation as resolved.
Show resolved Hide resolved
ignore_on_exit: results
output_path: report-dir/
output_formats: 'sarif'
token: ${{ secrets.GITHUB_TOKEN }}
enable_jobs_summary: true
pmacius marked this conversation as resolved.
Show resolved Hide resolved
platform_type: ansible
disable_secrets: true
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@323f5ef653b88011bf10e9a0a56d70d742463c9a # v3.26.8
with:
sarif_file: report-dir/results.sarif
Loading