Skip to content

Commit 5460165

Browse files
committed
Add CredScan suppression for test fixtures; wire suppressionsFile into template
1 parent e171362 commit 5460165

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.Pipelines/credscan-exclusion.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"tool": "Credential Scanner",
3+
"suppressions": [
4+
{
5+
"placeholder": "placeholder",
6+
"_justification": "tests/certificate-with-password.pfx is a test fixture certificate used only in unit tests. It is not a production credential.",
7+
"file": "tests/certificate-with-password.pfx"
8+
},
9+
{
10+
"placeholder": "placeholder",
11+
"_justification": "tests/test_mi.py line 385 contains a WWW-Authenticate challenge header value used as a test fixture in a mock HTTP response. It is not a real credential.",
12+
"file": "tests/test_mi.py",
13+
"line": "385"
14+
}
15+
]
16+
}

.Pipelines/template-pipeline-stages.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ stages:
6363
- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@3
6464
displayName: 'Run CredScan'
6565
inputs:
66+
suppressionsFile: '$(Build.SourcesDirectory)/.Pipelines/credscan-exclusion.json'
6667
toolMajorVersion: V2
6768
debugMode: false
6869

0 commit comments

Comments
 (0)