mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 09:45:22 +03:00
add kics scan
This commit is contained in:
parent
41c0a3e510
commit
b3ef3e242d
33
.github/workflows/kics.yml
vendored
Normal file
33
.github/workflows/kics.yml
vendored
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
name: "KICS"
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "master" ]
|
||||||
|
pull_request:
|
||||||
|
schedule:
|
||||||
|
- cron: '24 19 * * 3'
|
||||||
|
jobs:
|
||||||
|
kics-scan:
|
||||||
|
name: KICS Scan
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
actions: read
|
||||||
|
contents: read
|
||||||
|
security-events: write
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Run KICS
|
||||||
|
continue-on-error: true
|
||||||
|
run: |
|
||||||
|
docker pull checkmarx/kics:latest
|
||||||
|
docker run -v ${{ github.workspace }}:/path checkmarx/kics scan -p "/path" -o "/path/" --report-formats "sarif" --no-progress
|
||||||
|
- name: actions/upload-artifact
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: kics-analysis
|
||||||
|
path: results.sarif
|
||||||
|
- name: Upload KICS scan results to GitHub Security tab
|
||||||
|
if: ${{ env.CODEQL_ENABLED }}
|
||||||
|
uses: github/codeql-action/upload-sarif@v1
|
||||||
|
with:
|
||||||
|
sarif_file: results.sarif
|
||||||
Loading…
Reference in New Issue
Block a user