Scan with KICS #1254
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: Scan with KICS | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: "0 1 * * */3" | |
jobs: | |
kics-job: | |
runs-on: ubuntu-latest | |
name: kics-action | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Create results-dir | |
run: mkdir -p results-dir | |
- name: Run KICS Scan with SARIF result | |
uses: checkmarx/[email protected] | |
with: | |
path: 'aws' | |
output_path: results-dir | |
platform_type: terraform | |
output_formats: 'json,sarif' | |
- name: Show results | |
run: | | |
cat results-dir/results.sarif | |
cat results-dir/results.json | |
- name: Upload SARIF file | |
uses: github/codeql-action/upload-sarif@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0 | |
with: | |
sarif_file: results-dir/results.sarif |