Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress CredScan error from legitimate unit test PFX file with private key #9477

Merged
merged 2 commits into from
Dec 1, 2023

Conversation

GangWang01
Copy link
Member

Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1922736

Context

CredentialScanner detected .\src\Tasks.UnitTests\TestResources\mycert.pfx that had certificate keys. Since it's legitimate unit test PFX file, this is false positive.

Changes Made

Suppress the CredScan error from the UT PFX file.

Testing

Verified the run with this experimental branch. The CredScan error was eliminated.

Notes

Copy link
Contributor

@f-alizada f-alizada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, thank you

eng/CredScanSuppressions.json Outdated Show resolved Hide resolved
Co-authored-by: Rainer Sigwald <raines@microsoft.com>
Copy link
Member

@AR-May AR-May left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AR-May AR-May merged commit 67916dc into main Dec 1, 2023
8 checks passed
@AR-May AR-May deleted the exp/gaw/credscansupression branch December 1, 2023 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants