mirror of
https://github.com/ossf/scorecard.git
synced 2024-09-11 08:55:27 +03:00
Feat-Use synk to check cron-job security settings
Use synk to check for cron-job yaml for secuity misconfiguration.
This commit is contained in:
parent
3489c83404
commit
88de2df279
19
.github/workflows/synk-cron.yaml
vendored
Normal file
19
.github/workflows/synk-cron.yaml
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
name: synk-cron-job-check
|
||||
on: push
|
||||
jobs:
|
||||
snyk:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Run Snyk on cron-job k8s yaml
|
||||
continue-on-error: true
|
||||
uses: snyk/actions/iac@master
|
||||
env:
|
||||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
|
||||
with:
|
||||
file: k8s/cron.yaml
|
||||
args: --severity-threshold=high
|
||||
- name: Upload result to GitHub Code Scanning
|
||||
uses: github/codeql-action/upload-sarif@v1
|
||||
with:
|
||||
sarif_file: snyk.sarif
|
Loading…
Reference in New Issue
Block a user