Skip to content

Commit e1d98b1

Browse files
authored
chore: add snyk scanning of image (#763)
1 parent 19697ae commit e1d98b1

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,20 @@ jobs:
4242
env:
4343
DOCKER_USERNAME: ${{ secrets.RENKU_DOCKER_USERNAME }}
4444
DOCKER_PASSWORD: ${{ secrets.RENKU_DOCKER_PASSWORD }}
45+
- name: Get image tag
46+
id: image-tag
47+
run: |
48+
echo "image=renku/renku-gateway:$(echo ${GITHUB_REF} | cut -d/ -f3)" >> $GITHUB_OUTPUT
49+
- name: Scan amalthea-sessions image
50+
uses: snyk/actions/docker@master
51+
continue-on-error: true
52+
with:
53+
image: ${{ steps.image-tag.outputs.image}}
54+
args: --file=./Dockerfile --severity-threshold=high --sarif-file-output=gw.sarif
55+
env:
56+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
57+
- name: Upload Snyk report
58+
uses: github/codeql-action/upload-sarif@v3
59+
with:
60+
sarif_file: gw.sarif
61+
category: snyk_amalthea-sessions

0 commit comments

Comments
 (0)