-
Notifications
You must be signed in to change notification settings - Fork 384
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Huabing Zhao <[email protected]>
- Loading branch information
1 parent
9852333
commit 025ec1b
Showing
1 changed file
with
26 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,26 @@ | ||
name: Kubescape scanning for misconfigurations | ||
on: [push, pull_request] | ||
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 | ||
# # Optional: Specify the Kubescape Portal credentials | ||
# account: ${{secrets.KUBESCAPE_ACCOUNT}} | ||
# accessKey: ${{secrets.KUBESCAPE_ACCESS_KEY}} | ||
# server: ${{ vars.KUBESCAPE_SERVER }} | ||
# # 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 |