Skip to content

Commit

Permalink
ci(snyk): added retry
Browse files Browse the repository at this point in the history
we saw a situation where snyk was unresponsive, so adding some retry logic
  • Loading branch information
tompahoward committed Jan 11, 2021
1 parent ec16faf commit 7ba19a3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,14 @@ jobs:
node-version: 12.x
- run: npm config set script-shell $(which bash)
- run: npm ci
- run: npm run security
# We've seen situations where snyk is unavailable
# so do a bit of retry on failure
- uses: nick-invision/retry@v2
with:
timeout_seconds: 120
max_attempts: 3
retry_wait_seconds: 10
command: npm run security

build:
if: "! contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
Expand Down

0 comments on commit 7ba19a3

Please sign in to comment.