forked from JamesClonk/backman
-
Notifications
You must be signed in to change notification settings - Fork 20
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 #67 from swisscom/develop
update dependencies
- Loading branch information
Showing
8 changed files
with
85 additions
and
44 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,79 @@ | ||
name: periodic scanning | ||
|
||
on: | ||
schedule: | ||
- cron: '0 9 * * 1' | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
snyk-periodic-container: | ||
permissions: | ||
contents: read | ||
security-events: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: master | ||
- name: run snyk to check docker image for vulnerabilities | ||
continue-on-error: true | ||
uses: snyk/actions/docker@dc22abdbe8ec00e2a925256fef96f319ca5510ce | ||
env: | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
with: | ||
image: docker.io/jamesclonk/backman:latest | ||
sarif: true | ||
args: --policy-path=. --file=Dockerfile --severity-threshold=medium | ||
- name: upload results to github code scanning | ||
uses: github/codeql-action/upload-sarif@v2 | ||
with: | ||
sarif_file: snyk.sarif | ||
|
||
snyk-periodic-golang: | ||
permissions: | ||
contents: read | ||
security-events: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: master | ||
- name: run snyk to for golang vulnerabilities | ||
continue-on-error: true | ||
uses: snyk/actions/golang@dc22abdbe8ec00e2a925256fef96f319ca5510ce | ||
env: | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
with: | ||
args: --policy-path=. --file=go.mod --sarif-file-output=snyk.sarif --fail-on=all | ||
- name: upload results to github code scanning | ||
uses: github/codeql-action/upload-sarif@v2 | ||
with: | ||
sarif_file: snyk.sarif | ||
|
||
trivy-periodic-container: | ||
permissions: | ||
contents: read | ||
security-events: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: master | ||
- name: run trivy to check docker image for vulnerabilities | ||
continue-on-error: true | ||
uses: aquasecurity/trivy-action@4b9b6fb4ef28b31450391a93ade098bb00de584e | ||
with: | ||
image-ref: docker.io/jamesclonk/backman:latest | ||
format: 'sarif' | ||
output: 'trivy.sarif' | ||
vuln-type: 'os,library' | ||
severity: 'CRITICAL,HIGH,MEDIUM' | ||
ignore-unfixed: true | ||
skip-dirs: /root/.npm/_cacache,/etc/ssh | ||
- name: upload results to github code scanning | ||
uses: github/codeql-action/upload-sarif@v2 | ||
with: | ||
sarif_file: trivy.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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,3 +44,4 @@ backman | |
_fixtures/* | ||
/.idea/ | ||
snyk.sarif | ||
trivy.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 was deleted.
Oops, something went wrong.