Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
mathild3r committed Aug 24, 2021
2 parents 7eecf0b + 194098c commit 90acdc7
Show file tree
Hide file tree
Showing 8 changed files with 10,918 additions and 19,237 deletions.
2 changes: 1 addition & 1 deletion .snyk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
version: v1.13.5
version: v1.19.0
ignore: {}
# patches apply the minimum changes required to fix a vulnerability
patch:
Expand Down
32 changes: 31 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ More CI examples soon
### Point to GHE
export GH_API='https://ghe-hostname/apiendpoint'

#### Additional option - Debug
#### Additional option to enable snykDelta Debug
```
export SNYK_DEBUG=true
./snyk-prevent-gh-commit-status-linux
Expand All @@ -100,3 +100,33 @@ export SNYK_DEBUG=true
In case of an unmonitored project, it is possible to force the snyk-delta result so snyk-prevent-gh-commit-status will not fail.
If some vulnerabilities are found comment listing the vulnerabilities will still be the post on the PR.

#### Debug
use DEBUG=snyk* to enable snyk-prevent-gh-commit-status
```
DEBUG=snyk* ./snyk-prevent-gh-commit-status-linux
./snykTestResults.json
<GITHUB_TOKEN>
<GH_ORG_NAME>
<GH_REPO_NAME>
<CIRCLE_SHA1>
<GH_PR_NUMBER>
<LINK_TO_CI_JOB - optional>
<keepHistory - optional>
<setPassIfNoBaselineFlag - optional>
```

or to enable both snykDelta and snyk-prevent-gh-commit-status debug

```
export SNYK_DEBUG=true
DEBUG=snyk* ./snyk-prevent-gh-commit-status-linux
./snykTestResults.json
<GITHUB_TOKEN>
<GH_ORG_NAME>
<GH_REPO_NAME>
<CIRCLE_SHA1>
<GH_PR_NUMBER>
<LINK_TO_CI_JOB - optional>
<keepHistory - optional>
<setPassIfNoBaselineFlag - optional>
```
Loading

0 comments on commit 90acdc7

Please sign in to comment.