-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add steps to analyze for CVEs and upload SARIF
also: - fix spelling in readme - fix pulumi copy step in dockerfile - quote "prepare commit" step in mega-linter.yml
- Loading branch information
Showing
5 changed files
with
31 additions
and
4 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
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 |
---|---|---|
|
@@ -121,7 +121,31 @@ jobs: | |
targets: ${{ matrix.targets }} | ||
sbom: true | ||
provenance: true | ||
push: ${{ github.event_name != 'pull_request' }} | ||
push: ${{ github.event_name != 'pull_request' && github.actor != 'nektos/act' }} | ||
|
||
- name: Get the image tag | ||
id: meta | ||
run: | | ||
printf "tag=%s\n" "$(docker buildx bake ${{ matrix.targets }} --print | jq -r '[.target[].tags[]][0]')" >> "$GITHUB_OUTPUT" | ||
- name: Analyze for critical and high CVEs | ||
id: docker-scout-cves | ||
if: ${{ github.event_name != 'pull_request_target' && github.actor != 'nektos/act' }} | ||
# kics-scan ignore-line | ||
uses: docker/[email protected] | ||
with: | ||
command: cves | ||
image: ${{ steps.meta.outputs.tag }} | ||
sarif-file: sarif.output.json | ||
summary: true | ||
|
||
- name: Upload SARIF result | ||
id: upload-sarif | ||
if: ${{ github.event_name != 'pull_request_target' && github.actor != 'nektos/act' }} | ||
# kics-scan ignore-line | ||
uses: github/codeql-action/upload-sarif@v2 | ||
with: | ||
sarif_file: sarif.output.json | ||
|
||
# # vulnerability scanning to verify PRs | ||
# - name: Docker Scout | ||
|
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