Skip to content

Commit

Permalink
feat(no-ref): snyk integration
Browse files Browse the repository at this point in the history
  • Loading branch information
lachesse committed May 29, 2024
1 parent 06be938 commit b0a52c0
Show file tree
Hide file tree
Showing 7 changed files with 33,711 additions and 32,596 deletions.
2 changes: 2 additions & 0 deletions .github/hooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ set -e

npm run lint

npm run snyk:test

output=$(npm run type-coverage)
if echo "$output" | grep -q "lower than "; then
echo "$output"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/quality-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: build and quality

on: [push]

env:
snyk_token: ${{ secrets.SNYK_TOKEN }}

jobs:
quality-check:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/scripts/quality.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ set -e

npm run lint

npm run snyk:auth -- $snyk_token
npm run snyk:test

output=$(npm run type-coverage)
if echo "$output" | grep -q "lower than "; then
echo "$output"
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,6 @@ test-reports/
/projects/ngx-mask-lib/coverage

.angular

# Snyk
.dccache
1 change: 1 addition & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[submodule "src/libraries"]
path = src/libraries
branch = main
url = https://github.com/JsDaddy/libraries.git
Loading

0 comments on commit b0a52c0

Please sign in to comment.