Skip to content

Commit

Permalink
add snyk container monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
dylansnyk committed Mar 22, 2024
1 parent 9456573 commit ec56909
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/container-build-and-test.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Build Image and Test with Snyk

on:
workflow_dispatch:
workflow_call:
push:
branches:
- master

jobs:
docker:
Expand All @@ -27,12 +28,10 @@ jobs:
uses: docker/build-push-action@v5
with:
push: true
tags: troysnyk/snyk-juice-shop:linux-action
tags: troysnyk/snyk-juice-shop:linux

# - name: Test Built Image with Snyk
# uses: snyk/actions/docker@master
# env:
# SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
# with:
# image: troysnyk/snyk-juice-shop
# args: --file=Dockerfile
- uses: snyk/actions/setup@master
- name: Snyk Container Monitor
run: snyk container monitor troysnyk/snyk-juice-shop:linux --tags="component=pkg:${{ github.respository }}@${{ github.ref_name }}" --org=${{ secrets.SNYK_ORG_ID }} --exclude-app-vulns --file=Dockerfile
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

0 comments on commit ec56909

Please sign in to comment.