Repository navigation
chore: address dependabot and code scanning alerts in build tools - #2165
NathanWalker wants to merge 2 commits into
Conversation
- jsparser tests: drop unused babel 6, babylon, lazy, lodash and jasmine-node dependencies (the specs only drive the static binding generator through gradle) and refresh xmldom, minimatch and brace-expansion in the lockfile - jsparser: webpack 5.113.0 - android-metadata-generator: drop the unused grunt devDependencies - jsparser tests: use A-Za-z instead of the overly large A-z range - workflows: pin actions/download-artifact to v8.0.2 and install test-app/tools with npm ci from its lockfile
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
The test-only regex alerts are dismissed as used in tests; editing the line re-opens them under new fingerprints.
What is the current behavior?
Dependabot reports 24 open alerts, and code scanning reports alerts in test files, a legacy build helper, and release/PR workflows. Every Dependabot alert is in
test-app/build-tools:babel-traverse,babel-types,babylon),lazy,lodashandjasmine-node. None of them are used: the specs only usechild_process,pathandfs, and drive the static binding generator through gradle. They bring in vulnerableunderscore,lodash,xmldom,minimatchandbrace-expansion.android-metadata-generator/package.jsonlists grunt 0.4 devDependencies. There's no Gruntfile and nothing runs them.What is the new behavior?
npm auditreports 0 vulnerabilities.actions/download-artifact@v8is pinned to v8.0.2 by SHA, like the other actions.test-app/toolsis installed withnpm cifrom its lockfile.Validation
runAstTests): 11 specs, 0 failures before and after the change, run against a jsparser bundle rebuilt with webpack 5.113.0 and the trimmed test dependencies. They need the static binding generator jar built first:./gradlew -p test-app/build-tools/static-binding-generator jar -PappRoot=/tmp -PgeneratedJavaClassesRoot=/tmp.npm ci --prefix ./test-app/tools: succeeds, because the lockfile is in sync.