Skip to content

Commit

Permalink
{CI} Enable CredScan task of Microsoft Security Code Analysis (Previe…
Browse files Browse the repository at this point in the history
…w) (Azure#1252)
  • Loading branch information
Jianhui Harold authored and ManuInNZ committed Apr 11, 2020
1 parent 13ade97 commit 39477c2
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 26 deletions.
45 changes: 19 additions & 26 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,25 @@ trigger:
- '*'

jobs:
#- job: CredScan
# displayName: "Credential Scan"
#
# pool:
# vmImage: "windows-2019"
# steps:
# - task: CredScan@2
# inputs:
# toolMajorVersion: 'V2'
#
# - task: PostAnalysis@1
# inputs:
# AllTools: false
# APIScan: false
# BinSkim: false
# CodesignValidation: false
# CredScan: true
# FortifySCA: false
# FxCop: false
# ModernCop: false
# PoliCheck: false
# RoslynAnalyzers: false
# SDLNativeRules: false
# Semmle: false
# TSLint: false
# ToolLogsNotFoundAction: 'Standard'
- job: CredScan
displayName: "Credential Scan"
pool:
vmImage: "windows-2019"
steps:
- task: ms-codeanalysis.vss-microsoft-security-code-analysis.build-task-credscan.CredScan@2
displayName: 'CredScan'
inputs:
toolVersion: 'Latest'
suppressionsFile: './scripts/ci/credscan/CredScanSuppressions.json'
- task: ms-codeanalysis.vss-microsoft-security-code-analysis.build-task-postanalysis.PostAnalysis@1
displayName: 'Post Analysis'
inputs:
AllTools: false
BinSkim: false
CredScan: true
RoslynAnalyzers: false
TSLint: false
ToolLogsNotFoundAction: 'Standard'

- job: StaticAnalysis
displayName: "Static Analysis"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,22 @@
{
"placeholder": "aduser",
"_justification": "[NetAppFiles] Add suppression for false alarm in comments of _help.py"
},
{
"placeholder": "AZURE_CLIENT_SECRET",
"_justification": "[db_up] false alarm about environment variable name"
},
{
"placeholder": "ADPassword",
"_justification": "[SQL] false alarm about AuthenticationType enum value"
},
{
"placeholder": "ActiveDirectoryPassword",
"_justification": "[DataMigration] false alarm about AuthenticationType enum value"
},
{
"placeholder": "Ovg+o0K/0/2V8upg7AwlyAPCriEcOSXKuBu2Gv/PU70Y7aWDW3C2ZRmw6kYWqPWBaM1GosLkcSZkgsobAlT+Sw==",
"_justification": "[ADLS] false alarm on sign value"
}
]
}

0 comments on commit 39477c2

Please sign in to comment.