-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from kubescape/feat-image-scanning
feat: support image scanning
- Loading branch information
Showing
5 changed files
with
142 additions
and
5 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,30 @@ | ||
name: Kubescape scanning for image vulnerabilities | ||
on: [push, pull_request] | ||
jobs: | ||
kubescape-scan-image: | ||
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: | ||
image: quay.io/kubescape/kubescape | ||
format: sarif | ||
outputFile: results.sarif | ||
# severityThreshold: "critical" | ||
# # Username for a private registry with the image | ||
# # Username for the image registry account you use to retrieve and scan images | ||
# registryUsername: ${{secrets.SCANNER_REGISTRY_USERNAME}} | ||
# # Password for a private registry with the image | ||
# registryPassword: ${{secrets.REGISTRY_PASSWORD}} | ||
# # Fail at or above the specified vulnerability severity threshold | ||
# Kubescape cloud account ID | ||
# account: ${{secrets.KUBESCAPE_ACCOUNT}} | ||
- name: Upload Kubescape scan results to Github Code Scanning | ||
uses: github/codeql-action/upload-sarif@v2 | ||
with: | ||
sarif_file: results.sarif |
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
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
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
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