diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-docs/build.gradle | 9 | ||||
-rw-r--r-- | server/sonar-docs/package.json | 3 | ||||
-rw-r--r-- | server/sonar-web/build.gradle | 9 | ||||
-rw-r--r-- | server/sonar-web/package.json | 3 |
4 files changed, 2 insertions, 22 deletions
diff --git a/server/sonar-docs/build.gradle b/server/sonar-docs/build.gradle index aabb3cc87a2..82bcad62ea1 100644 --- a/server/sonar-docs/build.gradle +++ b/server/sonar-docs/build.gradle @@ -100,15 +100,6 @@ task "yarn_validate-ci"(type: Exec) { commandLine osAdaptiveCommand(['npm', 'run', 'validate-ci']) } -// Check for known vulnerabilities -task dependency_audit(type: Exec) { - inputs.file('package.json') - outputs.cacheIf { false } - ignoreExitValue = true - - commandLine osAdaptiveCommand(['npm', 'run', 'audit-ci']) -} - task zip(type: Zip) { def archiveDir = "$version" duplicatesStrategy DuplicatesStrategy.EXCLUDE diff --git a/server/sonar-docs/package.json b/server/sonar-docs/package.json index 019a8d537d2..c18a36a5160 100644 --- a/server/sonar-docs/package.json +++ b/server/sonar-docs/package.json @@ -72,8 +72,7 @@ "ts-check": "tsc --noEmit", "validate": "yarn lint && yarn ts-check && yarn format-check && yarn test", "validate-ci": "yarn install --immutable && yarn test --ci", - "check-ci": "yarn install --immutable && yarn ts-check && yarn format-check", - "audit-ci": "yarn npm audit --environment production --severity high" + "check-ci": "yarn install --immutable && yarn ts-check && yarn format-check" }, "prettier": { "jsxBracketSameLine": true, diff --git a/server/sonar-web/build.gradle b/server/sonar-web/build.gradle index 196296376de..4cff9991eb3 100644 --- a/server/sonar-web/build.gradle +++ b/server/sonar-web/build.gradle @@ -67,15 +67,6 @@ task "yarn_check-ci"(type: Exec) { commandLine osAdaptiveCommand(['npm', 'run', 'check-ci']) } -// Check for known vulnerabilities -task dependency_audit(type: Exec) { - inputs.file('package.json') - outputs.cacheIf { false } - ignoreExitValue = true - - commandLine osAdaptiveCommand(['npm', 'run', 'audit-ci']) -} - def sources = fileTree(dir: "src") + fileTree(dir: "scripts") + fileTree(dir: "config") + fileTree(dir: "__mocks__") task licenseCheckWeb(type: com.hierynomus.gradle.license.tasks.LicenseCheck) { diff --git a/server/sonar-web/package.json b/server/sonar-web/package.json index 8c9c2c12684..ca3f9b43525 100644 --- a/server/sonar-web/package.json +++ b/server/sonar-web/package.json @@ -139,8 +139,7 @@ "validate": "yarn lint && yarn ts-check && yarn format-check && yarn test", "validate-ci": "yarn install --immutable && yarn test --coverage --ci", "check-ci": "yarn install --immutable && yarn ts-check && yarn format-check", - "precommit": "yarn ts-check && lint-staged", - "audit-ci": "yarn npm audit --environment production --severity high" + "precommit": "yarn ts-check && lint-staged" }, "engines": { "node": ">=8" |