Skip to content

Commit

Permalink
Scan Docker images with Snyk in github action (close #346)
Browse files Browse the repository at this point in the history
  • Loading branch information
istreeter committed Apr 3, 2023
1 parent b8a93c7 commit 8f7eff4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 25 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,16 @@ jobs:
platforms: linux/amd64,linux/arm64/v8
tags: ${{ steps.distroless-meta.outputs.tags }}
push: true

- name: Build local distroless image, which is needed to run Snyk
if: ${{ !contains(github.ref_name, 'rc') }}
run: sbt "project ${{ matrix.app }}Distroless" docker:publishLocal
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/docker@master
if: ${{ !contains(github.ref_name, 'rc') }}
with:
image: "snowplow/snowplow-bigquery-${{ matrix.app }}:${{ github.ref_name }}-distroless"
args: "--app-vulns --org=data-processing-new"
command: monitor
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
25 changes: 0 additions & 25 deletions .github/workflows/snyk.yml

This file was deleted.

0 comments on commit 8f7eff4

Please sign in to comment.