Browse Source

Fix frontend dependency audit tasks

tags/9.2.0.49834
Philippe Perrin 2 years ago
parent
commit
4764c30e61
2 changed files with 4 additions and 4 deletions
  1. 2
    2
      server/sonar-docs/build.gradle
  2. 2
    2
      server/sonar-web/build.gradle

+ 2
- 2
server/sonar-docs/build.gradle View File

@@ -98,10 +98,10 @@ clean.dependsOn(cleanYarn_run)
}

// Check for known vulnerabilities
yarn_audit {
task dependency_audit(type: Exec) {
inputs.file('package.json')
outputs.cacheIf { false }
args = ['--groups', 'dependencies', '--level', 'high']
commandLine 'yarn', 'npm', 'audit', '--environment', 'production', '--severity', 'high'
ignoreExitValue = true
dependsOn(yarn)
}

+ 2
- 2
server/sonar-web/build.gradle View File

@@ -55,10 +55,10 @@ build.dependsOn(yarn_run)
}

// Check for known vulnerabilities
yarn_audit {
task dependency_audit(type: Exec) {
inputs.file('package.json')
outputs.cacheIf { false }
args = ['--groups', 'dependencies', '--level', 'high']
commandLine 'yarn', 'npm', 'audit', '--environment', 'production', '--severity', 'high'
ignoreExitValue = true
dependsOn(yarn)
}

Loading…
Cancel
Save