Skip to content

Commit

Permalink
fix: expose analyzer.node.audit.url (#423)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylong authored Nov 22, 2024
1 parent b5962db commit bdc23d1
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 bdc23d1

Please sign in to comment.