Skip to content

Commit

Permalink
Merge pull request #39 from kubescape/yuleib-patch-1
Browse files Browse the repository at this point in the history
Create ks-ga-flow.yaml
  • Loading branch information
yuleib committed Jun 21, 2023
2 parents fa631c4 + 91b5d55 commit 9f6732d
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ks-ga-flow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Kubescape scanning for misconfigurations

on:
workflow_call:
inputs:
FAILEDTHRESHOLD:
required: true
type: number

jobs:
kubescape:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- uses: actions/checkout@v3
- uses: kubescape/github-action@main
continue-on-error: true
with:
format: sarif
outputFile: results
account: ${{secrets.KUBESCAPE_ACCOUNT}}
# files: "examples/*.yaml"
# frameworks: |
# nsa,mitre
failedThreshold: ${{ inputs.FAILEDTHRESHOLD }}
- name: Upload Kubescape scan results to Github Code Scanning
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: results.sarif

0 comments on commit 9f6732d

Please sign in to comment.