Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audit yarn dependencies with allowlist #8659

Merged
merged 2 commits into from
Jun 26, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ endif
bundle exec bundler-audit check --update
# JavaScript
@echo "--- yarn audit ---"
yarn audit --groups dependencies; test $$? -le 7
make audit_yarn_packages
@echo "--- eslint ---"
yarn run lint
@echo "--- typescript ---"
Expand All @@ -104,6 +104,8 @@ endif
@echo "--- lint migrations ---"
make lint_migrations

audit_yarn_packages:
npx -y audit-ci@6.6.1 --config ./audit-ci.jsonc

lint_erb: ## Lints ERB files
bundle exec erblint app/views app/components
Expand Down
13 changes: 13 additions & 0 deletions audit-ci.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://github.com/IBM/audit-ci/raw/main/docs/schema.json",
"moderate": true,
"allowlist": [
{
"GHSA-c2qf-rxjj-qqgw": {
"active": true,
"notes": "semver RegExp DoS, pending upstream release, vulnerable path not applicable",
"expiry": "2023-09-01"
}
}
]
}