Skip to content

Commit

Permalink
configure snyk
Browse files Browse the repository at this point in the history
  • Loading branch information
pyToshka committed Jan 8, 2024
1 parent 51f6f83 commit 5ff59b4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/snyk-security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,28 +32,27 @@ jobs:
# Snyk can be used to break the build when it detects security issues.
# In this case we want to upload the SAST issues to GitHub Code Scanning
uses: snyk/actions/setup@806182742461562b67788a64410098c9d9b96adb

# For Snyk Open Source you must first set up the development environment for your application's dependencies
# For example for Node
#- uses: actions/setup-node@v3
# with:
# node-version: 16

env:
# This is where you will need to introduce the Snyk API token created with your Snyk account
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

# Runs Snyk Code (SAST) analysis and uploads result into GitHub.
# Use || true to not fail the pipeline
- name: Snyk Code test
uses: snyk/actions/python-3.8@master
continue-on-error: true
run: snyk code test -d --sarif > snyk-code.sarif # || true
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --severity-threshold=high

- name: Build a Docker image
continue-on-error: true
run: docker build -t ${{ matrix.dockerfile }} .
# Runs Snyk Container (Container and SCA) analysis and uploads result to Snyk.
- name: Snyk Container monitor
continue-on-error: true
run: snyk container monitor ${{ matrix.image }} --file=${{ matrix.dockerfile }}
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ docker-compose.yaml
tmp/
wazuh_indexer_ssl_certs
snyk-code.sarif
.dccache

0 comments on commit 5ff59b4

Please sign in to comment.