8000 Fix credential scan issues by TravisEz13 · Pull Request #4927 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

Fix credential scan issues #4927

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

Merged
merged 2 commits into from
Sep 27, 2017

Conversation

TravisEz13
Copy link
Member
@TravisEz13 TravisEz13 commented Sep 26, 2017

Add suppression for lines with secrets.
Add suppressions for files which are secrets.
This will be consumed in the VSTS daily build.

Renamed tests with ConvertTo-SecureString to avoid false positives

Copy link
Member
@SteveL-MSFT SteveL-MSFT left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -1,8 +1,9 @@
Describe "ConvertTo-SecureString" -Tags "CI" {
Describe "ConvertTo--SecureString" -Tags "CI" {
Copy link
Member

Choose a reason for hiding this comment

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

Seems to have an extra - between ConvertTo and SecureString

Copy link
Member Author

Choose a reason for hiding this comment

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

I have to rename it to something other than convertto-securestring.


Context "Checking return types of ConvertTo-SecureString" {
Context "Checking return types of ConvertTo--SecureString" {
Copy link
Member

Choose a reason for hiding this comment

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

Seems to have an extra - between ConvertTo and SecureString

Copy link
Member Author

Choose a reason for hiding this comment

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

See the previous comment

@TravisEz13 TravisEz13 merged commit f02e692 into PowerShell:master Sep 27, 2017
@TravisEz13 TravisEz13 deleted the FixCredentialScanIssues branch September 27, 2017 18:54
@megamorf
Copy link
Contributor
megamorf commented Oct 6, 2017

Just out of curiosity, is the CS002:SecretInNextLine suppression VSTS specific? Haven't seen that before.

@TravisEz13
Copy link
Member Author
TravisEz13 commented Oct 17, 2017

@megamorf It's specific to the tool we use. Unfortunately, the tool itself is internal to Microsoft only. That is why we run it in VSTS and not our normal CI systems.

@megamorf
Copy link
Contributor

@TravisEz13 Ah, that makes sense. Thanks for the answer :-)

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
0