Skip to content

Commit

Permalink
Fix/post analysis (#277)
Browse files Browse the repository at this point in the history
* Fix post analysis

* Update security analysis publisher

* Update policheck exclusions dir
  • Loading branch information
calebkiage authored Oct 19, 2023
1 parent 8472347 commit f2047dc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
12 changes: 5 additions & 7 deletions .azure-pipelines/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ stages:
optionsUEPATH: $(System.DefaultWorkingDirectory)/.azure-pipelines/config/PoliCheckExclusions.xml
optionsSEV: "1|2"
optionsPE: 2
result: poli_result_src.xml

# Install the nuget tool.
- task: NuGetToolInstaller@1
Expand Down Expand Up @@ -91,17 +90,16 @@ stages:
AnalyzeHashes: true
AnalyzeEnvironment: true

- task: PublishSecurityAnalysisLogs@2
- task: PublishSecurityAnalysisLogs@3
displayName: "Publish Security Analysis Logs"
inputs:
ArtifactName: SecurityLogs
ArtifactName: CodeAnalysisLogs
AllTools: true

- task: PostAnalysis@1
- task: PostAnalysis@2
displayName: "Post Analysis"
inputs:
BinSkim: true
CredScan: true
PoliCheck: true
GdnBreakAllTools: true

- task: UseDotNet@2
displayName: "Add .NET 2"
Expand Down
2 changes: 1 addition & 1 deletion .azure-pipelines/config/PoliCheckExclusions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
<!--<Exclusion Type="FileType">.ABC|.XYZ</Exclusion>-->
<!--The specified file names will be skipped during the scan regardless which folder they are in -->
<!--<Exclusion Type="FileName">ABC.TXT|XYZ.CS</Exclusion>-->
<Exclusion Type="FolderPathFull">SRC\GENERATED</Exclusion>
<Exclusion Type="FolderPathFull">SRC\SAMPLE\GENERATED</Exclusion>
</PoliCheckExclusions>
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"editor.formatOnSave": true
"editor.formatOnSave": true,
"[xml]": {
"editor.formatOnSave": false,
}
}

0 comments on commit f2047dc

Please sign in to comment.