Skip to content

Commit acfc132

Browse files
authored
Add eslint and reporting to static analysis (#13084)
* Add eslint and reporting * Removing Semmle * Add trust service automation config * More tweaks to settings.
1 parent 6893903 commit acfc132

File tree

2 files changed

+29
-8
lines changed

2 files changed

+29
-8
lines changed

build/ci/TSAOptions.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"projectName": "PVSC",
3+
"areaPath": "PVSC\\Security",
4+
"iterationPath": "PVSC",
5+
"allTools": true
6+
}

build/ci/vscode-python-ci-static-analysis.yaml

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,16 @@ jobs:
5959
TypeScriptVersion: 'latest'
6060
continueOnError: true
6161

62-
- task: Semmle@0
62+
- task: ESLint@1
6363
inputs:
64-
sourceCodeDirectory: '$(Build.SourcesDirectory)\pythonFiles'
65-
language: 'python'
66-
querySuite: 'Recommended'
67-
timeout: '1800'
68-
ram: '16384'
69-
addProjectDirToScanningExclusionList: true
64+
Configuration: 'recommended'
65+
TargetType: 'eslint'
66+
ErrorLevel: 'warn'
67+
continueOnError: true
7068

7169
- task: CredScan@3
70+
continueOnError: true
7271
inputs:
73-
outputFormat: 'csv'
7472

7573
- task: UsePythonVersion@0
7674
inputs:
@@ -84,3 +82,20 @@ jobs:
8482
python -m pip install -U pip
8583
python -m pip install bandit
8684
python -m bandit -r "$(Build.SourcesDirectory)\pythonFiles"
85+
continueOnError: true
86+
87+
- task: SdtReport@2
88+
inputs:
89+
GdnExportAllTools: true
90+
91+
- task: PublishSecurityAnalysisLogs@3
92+
inputs:
93+
ArtifactName: 'CodeAnalysisLogs'
94+
ArtifactType: 'Container'
95+
AllTools: true
96+
ToolLogsNotFoundAction: 'Standard'
97+
98+
- task: TSAUpload@2
99+
inputs:
100+
GdnPublishTsaOnboard: true
101+
GdnPublishTsaConfigFile: '$(Build.SourcesDirectory)\build\ci\TSAOptions.json'

0 commit comments

Comments
 (0)