From f2047dc497201f81cb719679bb4ed4bc163af7e3 Mon Sep 17 00:00:00 2001
From: Caleb Kiage <747955+calebkiage@users.noreply.github.com>
Date: Fri, 20 Oct 2023 00:02:57 +0300
Subject: [PATCH] Fix/post analysis (#277)
* Fix post analysis
* Update security analysis publisher
* Update policheck exclusions dir
---
.azure-pipelines/ci-build.yml | 12 +++++-------
.azure-pipelines/config/PoliCheckExclusions.xml | 2 +-
.vscode/settings.json | 5 ++++-
3 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/.azure-pipelines/ci-build.yml b/.azure-pipelines/ci-build.yml
index f8eb329f..0cb60933 100644
--- a/.azure-pipelines/ci-build.yml
+++ b/.azure-pipelines/ci-build.yml
@@ -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
@@ -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"
diff --git a/.azure-pipelines/config/PoliCheckExclusions.xml b/.azure-pipelines/config/PoliCheckExclusions.xml
index ba584fb6..86ae5745 100644
--- a/.azure-pipelines/config/PoliCheckExclusions.xml
+++ b/.azure-pipelines/config/PoliCheckExclusions.xml
@@ -8,5 +8,5 @@
- SRC\GENERATED
+ SRC\SAMPLE\GENERATED
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 23fd35f0..313d9c50 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -1,3 +1,6 @@
{
- "editor.formatOnSave": true
+ "editor.formatOnSave": true,
+ "[xml]": {
+ "editor.formatOnSave": false,
+ }
}
\ No newline at end of file