Skip to content

Commit b832d7c

Browse files
committed
chore: add snyk tests to the pre-commit git hook
1 parent 4680cd4 commit b832d7c

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.husky/pre-commit

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
npm run prepack && npm run lint-staged
22

3-
echo "\n\n Running Talisman secret scan... \n\n"
3+
echo "\n\n Running Talisman secret scan..."
44
talisman --githook pre-commit
5+
6+
echo "\n\n Running Snyk vulnerability scan..."
7+
snyk test --all-projects

.snyk

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
2+
version: v1.25.1
3+
ignore:
4+
'snyk:lic:npm:npm:Artistic-2.0':
5+
- '*':
6+
reason: oclif package is the core dependency for the CLI
7+
created: 2025-04-16T11:52:49.708Z
8+
patch: {}

0 commit comments

Comments
 (0)