Skip to content

Commit 9a30da1

Browse files
Skip Snyk action for Dependabot PRs
The Snyk action fails because Dependabot cannot access the SNYK_TOKEN secret. Fix error during tests workflow: `snyk` requires an authenticated account. Please run `snyk auth` and try again.
1 parent abee3f0 commit 9a30da1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
fail_ci_if_error: true
4444

4545
- name: Run Snyk to check for vulnerabilities
46+
if: ${{ github.actor != 'dependabot[bot]' }}
4647
uses: snyk/actions/node@master
4748
env:
4849
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

0 commit comments

Comments
 (0)