Skip to content

Commit

Permalink
GH Actions: Add KICS
Browse files Browse the repository at this point in the history
KICS - Keeping Infrastructure as Code Secure

Opensource tool for detecting flaws in infrastructure code

Signed-off-by: Martin Basti <mbasti@redhat.com>
  • Loading branch information
MartinBasti authored and rcerven committed Nov 25, 2022
1 parent 3d9a51d commit b6359d9
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/kics.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: "KICS"

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: "56 22 * * 2"

jobs:
kics-analyze:
name: KICS-Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false

steps:
- uses: actions/checkout@v3
- name: Mkdir results-dir
# make sure results dir is created
run: mkdir -p results-dir
- name: Run kics Scan
uses: Checkmarx/kics-github-action@v1.6
with:
path: 'tasks,defaults,meta'
platform_type: ansible
output_path: results-dir
output_formats: 'json,sarif'
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: results-dir/results.sarif

0 comments on commit b6359d9

Please sign in to comment.