-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
adc5b4e
commit f7b7e8a
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Kubescape scanning for misconfigurations | ||
on: [push, pull_request] | ||
jobs: | ||
kubescape: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: kubescape/github-action@main | ||
continue-on-error: true | ||
with: | ||
format: sarif | ||
outputFile: results.sarif | ||
# Optional: Specify the Kubescape cloud account ID | ||
# account: ${{secrets.KUBESCAPE_ACCOUNT}} | ||
# # Optional: Scan a specific path. Default will scan the whole repository | ||
# files: "examples/*.yaml" | ||
- name: Upload Kubescape scan results to Github Code Scanning | ||
uses: github/codeql-action/upload-sarif@v2 | ||
with: | ||
sarif_file: results.sarif |