Skip to content

Commit

Permalink
build: add snyk scans for release
Browse files Browse the repository at this point in the history
  • Loading branch information
joshiste committed Dec 15, 2023
1 parent 2cb83c9 commit 566540c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/reusable-snyk-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ on:
jobs:
snyk:
name: Snyk
runs-on: ${{ inputs.runs_on }}
runs-on: ubuntu-latest
timeout-minutes: 60
continue-on-error: true
env:
snyk_available: ${{ secrets.SNYK_TOKEN != '' }}
container_image: ${{ inputs.container_image || format('ghcr.io/{0}:{1}', github.repository, github.ref_name) }}
Expand All @@ -38,6 +37,7 @@ jobs:

- name: Snyk ${{ inputs.command }}
if: ${{ env.snyk_available }}
continue-on-error: true
uses: snyk/actions/golang@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
Expand All @@ -47,6 +47,7 @@ jobs:

- name: Snyk ${{ inputs.command }} docker image ${{ env.container_image }}
if: ${{ env.snyk_available }}
continue-on-error: true
uses: snyk/actions/docker@master
with:
image: ${{ env.container_image }}
Expand Down

0 comments on commit 566540c

Please sign in to comment.