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

} }


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

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

} }


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

Loading…
Cancel
Save