forked from HO-CTO/sre-monitoring-as-code
-
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.
Merge pull request #14 from HO-CTO/main
update-repo-with-fork-changes
- Loading branch information
Showing
40 changed files
with
1,607 additions
and
1,188 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 |
---|---|---|
|
@@ -50,8 +50,9 @@ jobs: | |
PACKAGE_TOKEN=${{secrets.GITHUB_TOKEN}} | ||
MAC_VERSION='#${{ github.event.number }}' | ||
- name: Run Snyk to check Docker image for vulnerabilities | ||
id: snyk | ||
# Snyk security scan of Docker file only | ||
- name: Run Snyk to check Docker file for vulnerabilities | ||
id: snyk-dockerfile | ||
continue-on-error: true | ||
uses: snyk/actions/[email protected] | ||
env: | ||
|
@@ -69,7 +70,24 @@ jobs: | |
sarif_file: snyk.sarif | ||
|
||
- name: Check on failures | ||
if: steps.snyk.outcome != 'success' | ||
if: steps.snyk-dockerfile.outcome != 'success' | ||
run: exit 1 | ||
|
||
# Snyk security scan of Built Docker Image and unmanaged dependencies | ||
- name: Run Snyk to check Docker image for vulnerabilities | ||
id: snyk-image | ||
continue-on-error: true | ||
uses: snyk/actions/[email protected] | ||
env: | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
with: | ||
image: ${{ steps.meta.outputs.tags }} | ||
args: | | ||
--app-vulns | ||
--severity-threshold=medium | ||
- name: Check on failures | ||
if: steps.snyk-image.outcome != 'success' | ||
run: exit 1 | ||
|
||
- name: Push image to GitHub Container Registry | ||
|
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
Oops, something went wrong.