Skip to content

Commit

Permalink
fix: added security KICS scan action
Browse files Browse the repository at this point in the history
  • Loading branch information
roolrd committed Mar 6, 2024
1 parent 07a0520 commit ca80b96
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/kics_sec_scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Run security KICS scaner

on:
pull_request:
branches:
- main

jobs:
kics:
name: Run security KICS scaner
runs-on: "ubuntu-latest"

steps:
- name: Checkout code repo
uses: actions/checkout@v3

- name: Run security KICS scaner
uses: checkmarx/kics-github-action@v1.7.0

Check warning on line 18 in .github/workflows/kics_sec_scan.yml

View workflow job for this annotation

GitHub Actions / Run security KICS scaner

[MEDIUM] Unpinned Actions Full Length Commit SHA

Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps mitigate the risk of a bad actor adding a backdoor to the action's repository, as they would need to generate a SHA-1 collision for a valid Git object payload. When selecting a SHA, you should verify it is from the action's repository and not a repository fork.
with:
path: .
output_path: myResults/
output_formats: 'sarif'
enable_comments: true
enable_annotations: true
ignore_on_exit: results

# TBD
# - name: Upload SARIF file
# uses: github/codeql-action/upload-sarif@v1
# with:
# sarif_file: myResults/results.sarif

0 comments on commit ca80b96

Please sign in to comment.