mirror of
https://github.com/Burnett01/rsync-deployments.git
synced 2025-09-04 17:30:38 +02:00
feat: Snyk container workflow configuration (#79)
* Update Snyk container workflow configuration * Update Docker image name in Snyk workflow * Update Snyk action to use latest master version
This commit is contained in:
parent
51bdd07760
commit
fbd408424a
1 changed files with 36 additions and 0 deletions
36
.github/workflows/snyk-container.yml
vendored
Normal file
36
.github/workflows/snyk-container.yml
vendored
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
name: Snyk Container
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "master" ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ "master" ]
|
||||||
|
schedule:
|
||||||
|
- cron: '39 13 * * 4'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
snyk:
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
security-events: write
|
||||||
|
actions: read
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Build a Docker image
|
||||||
|
run: docker build -t burnett01/rsync-deployments .
|
||||||
|
- name: Run Snyk to check Docker image for vulnerabilities
|
||||||
|
continue-on-error: true
|
||||||
|
uses: snyk/actions/docker@master
|
||||||
|
env:
|
||||||
|
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
|
||||||
|
with:
|
||||||
|
image: burnett01/rsync-deployments
|
||||||
|
args: --file=Dockerfile
|
||||||
|
- name: Upload result to GitHub Code Scanning
|
||||||
|
uses: github/codeql-action/upload-sarif@v3
|
||||||
|
with:
|
||||||
|
sarif_file: snyk.sarif
|
Loading…
Reference in a new issue