Skip to content

Commit 3463af2

Browse files
Add CredScan suppressions
1 parent 219ccf3 commit 3463af2

File tree

3 files changed

+63
-3
lines changed

3 files changed

+63
-3
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"tool": "Credential Scanner",
3+
"suppressions": [
4+
{
5+
"hash": "4HFMaPyHf2Oq0UHssXYQ+IzVZIRgG18pB/v4dtou7sw=",
6+
"_justification": "authenticationmethod-resetpassword.md line 184 Sample password in JSON example"
7+
},
8+
{
9+
"hash": "Dl8lVS64t7J9YPKUCrs6IvmGgwA9lkG/9TTJvKLyIfw=",
10+
"_justification": "externallyaccessibleawsstoragebucketfinding-list.md line 118 Sample Azure storage account access key in JSON example"
11+
},
12+
{
13+
"hash": "6uNofS5cYXMBA0lB/CvV80FLhrnf5Pgi8z1A4ouVNzE=",
14+
"_justification": "security-passivednsrecord-get.md line 66 Sample general symmetric key in HTTP request example"
15+
},
16+
{
17+
"hash": "DqnzqSuPoql8CRa0NwVQjvMWVEdB/1JVZhMLf5a7caw=",
18+
"_justification": "serviceprincipal-createpasswordsinglesignoncredentials.md line 90 Sample common default password in JSON example"
19+
},
20+
{
21+
"hash": "YGEAcd2dkpni4zKf2vds0XCBd4ETjyy6VSqP6wF8K4Y=",
22+
"_justification": "security-whoishistoryrecord-get.md line 64 Sample symmetric key in HTTP request example"
23+
},
24+
{
25+
"hash": "yuNZ6vrD0RfK/gi2biOeRwncQ7QBOUsptruQ9gF4fGE=",
26+
"_justification": "user-changepassword.md line 67 Sample password in JSON example"
27+
},
28+
{
29+
"hash": "XQQz4syNsXVwCQBB+ROKXms/PeYf1xxMiu93rtFGQzE=",
30+
"_justification": "user-validatepassword.md line 69 Sample password in JSON example"
31+
},
32+
{
33+
"hash": "449XS9qz2RDCs4hRlMopVw7CCRxp01qRBUh152CBj1w=",
34+
"_justification": "send-sharing-invite-go-snippets.md line 40 Sample password in JSON example"
35+
},
36+
{
37+
"hash": "ezuuJrz3tJVuhDI3QayaAQnoJmJ7OdePNofJCf9yRos=",
38+
"_justification": "update-planneruser-go-snippets.md line 22 Sample general symmetric key in code snippets"
39+
},
40+
{
41+
"hash": "4HFMaPyHf2Oq0UHssXYQ+IzVZIRgG18pB/v4dtou7sw=",
42+
"_justification": "passwordauthenticationmethod-resetpassword-adminprovided-java-snippets.md line 9 Sample password in code snippets"
43+
},
44+
{
45+
"hash": "pFG5S9mElRlcOZ+ByQRi1yN4nzkV+sW0DBJStZwB13I=",
46+
"_justification": "application-saml-sso-configure-api.md line 1004 Sample general symmetric key in JSON example"
47+
},
48+
{
49+
"hash": "lrucAcVPXoYUsoNE7NH+dQDxA5dKVl04BhLUkL2i+k8=",
50+
"_justification": "auth-v2-service.md line 166 Sample Azure AD client secret in cURL example"
51+
},
52+
{
53+
"hash": "Yq6kyr67P2hd5i71eNVIOL8EHosrVwv9Mg0R6PdiF6c=",
54+
"_justification": "authenticationmethods-get-started.md line 451 Sample general password in JSON example"
55+
}
56+
]
57+
}

Test-Docs.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ elseif ($useNuGetPackage -eq $false -and [string]::IsNullOrWhiteSpace($apiDoctor
3636

3737
# Check if docs subpath has been set
3838
if ([string]::IsNullOrWhiteSpace($docsSubPath)) {
39-
Write-Host "API Doctor subpath has not been set. Aborting..."
39+
Write-Host "Docs subpath has not been set. Aborting..."
4040
exit 1
4141
}
4242

apidoctor.validation.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ extends:
5353
name: Azure-Pipelines-1ESPT-ExDShared
5454
image: windows-2022
5555
os: windows
56+
sdl:
57+
credscan:
58+
suppressionsFile: $(Build.SourcesDirectory)\.azure-pipelines\.config\CredScanSuppressions.json
5659
customBuildTags:
5760
- ES365AIMigrationTooling
5861

@@ -70,7 +73,7 @@ extends:
7073
steps:
7174
- pwsh: |
7275
Write-Host "Executing API Doctor script with the following parameters:"
73-
if ($env:USE_NUGET_PACKAGE -eq 'True') {
76+
if ($env:USE_NUGET_PACKAGE -eq $true) {
7477
if ([string]::IsNullOrWhiteSpace($env:USE_NUGET_PACKAGE)) {
7578
Write-Host "API Doctor NuGet package version has not been set. Aborting..."
7679
exit 1
@@ -111,4 +114,4 @@ extends:
111114
DOCS_SUB_PATH: \api-reference\beta
112115
inputs:
113116
filePath: Test-Docs.ps1
114-
arguments: -cleanUp
117+
arguments: -cleanUp

0 commit comments

Comments
 (0)