Skip to content

Commit

Permalink
Merge pull request #2951 from WadeBarnes/fix/snyk-container-scanning
Browse files Browse the repository at this point in the history
Fix Snyk Container scanning workflow
  • Loading branch information
WadeBarnes authored May 15, 2024
2 parents f37bc91 + 6d0446e commit cc738f3
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
name: Snyk Container
on:
pull_request:
branches: [main]
branches:
- main
paths:
- aries_cloudagent
- docker
- aries_cloudagent/**
- docker/**

jobs:
snyk:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'hyperledger' }}
steps:
- uses: actions/checkout@v4

- name: Build a Docker image
run: docker build -t aries-cloudagent -f docker/Dockerfile .

- name: Run Snyk to check Docker image for vulnerabilities
# Snyk can be used to break the build when it detects vulnerabilities.
# In this case we want to upload the issues to GitHub Code Scanning
continue-on-error: true
uses: snyk/actions/docker@master
uses: snyk/actions/docker@0.4.0
env:
# In order to use the Snyk Action you will need to have a Snyk API token.
# More details in https://github.com/snyk/actions#getting-your-snyk-token
Expand All @@ -27,6 +30,7 @@ jobs:
with:
image: aries-cloudagent
args: --file=docker/Dockerfile

- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v3
with:
Expand Down

0 comments on commit cc738f3

Please sign in to comment.