Skip to content

Commit

Permalink
fix: expose analyzer.node.audit.url
Browse files Browse the repository at this point in the history
resolves #408
  • Loading branch information
jeremylong committed Nov 21, 2024
1 parent b5962db commit e26d431
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,8 @@ class NodeAuditExtension {
* The path to `pnpm`.
*/
String pnpmPath
/**
* The URL to the NPM Audit API.
*/
String url
}
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ abstract class ConfiguredTask extends DefaultTask {
settings.setBooleanIfNotNull(ANALYZER_NODE_AUDIT_ENABLED, select(config.analyzers.nodeAudit.enabled, config.analyzers.nodeAuditEnabled))
settings.setBooleanIfNotNull(ANALYZER_NODE_AUDIT_USE_CACHE, config.analyzers.nodeAudit.useCache)
settings.setBooleanIfNotNull(ANALYZER_NODE_AUDIT_SKIPDEV, config.analyzers.nodeAudit.skipDevDependencies)
settings.setStringIfNotEmpty(ANALYZER_NODE_AUDIT_URL, config.analyzers.nodeAudit.url)
settings.setBooleanIfNotNull(ANALYZER_YARN_AUDIT_ENABLED, config.analyzers.nodeAudit.yarnEnabled)
settings.setStringIfNotNull(ANALYZER_YARN_PATH, config.analyzers.nodeAudit.yarnPath);
settings.setBooleanIfNotNull(ANALYZER_PNPM_AUDIT_ENABLED, config.analyzers.nodeAudit.pnpmEnabled)
Expand Down

0 comments on commit e26d431

Please sign in to comment.