-
Notifications
You must be signed in to change notification settings - Fork 3.4k
{Misc.} Port credscan false positive fix from release to dev #32881
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
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -683,6 +683,18 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| "src\\azure-cli\\azure\\cli\\command_modules\\network\\tests\\latest\\test_network_commands.py" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "_justification": "[Network] False positive" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "placeholder": "asdfghjkl", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "_justification": "[ARO] Dummy client_secret value in test_validators.py unit tests" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "placeholder": "secret_123", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "_justification": "[ARO] Dummy client_secret value in test_validators.py unit tests" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "placeholder": "client_id_456", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "_justification": "[ARO] Dummy client_id value in test_validators.py unit tests" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+688
to
+697
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "placeholder": "asdfghjkl", | |
| "_justification": "[ARO] Dummy client_secret value in test_validators.py unit tests" | |
| }, | |
| { | |
| "placeholder": "secret_123", | |
| "_justification": "[ARO] Dummy client_secret value in test_validators.py unit tests" | |
| }, | |
| { | |
| "placeholder": "client_id_456", | |
| "_justification": "[ARO] Dummy client_id value in test_validators.py unit tests" | |
| "file": [ | |
| "src\\azure-cli\\azure\\cli\\command_modules\\aro\\tests\\latest\\test_validators.py" | |
| ], | |
| "_justification": "[ARO] Dummy client_secret value in test_validators.py unit tests (asdfghjkl)" | |
| }, | |
| { | |
| "file": [ | |
| "src\\azure-cli\\azure\\cli\\command_modules\\aro\\tests\\latest\\test_validators.py" | |
| ], | |
| "_justification": "[ARO] Dummy client_secret value in test_validators.py unit tests (secret_123)" | |
| }, | |
| { | |
| "file": [ | |
| "src\\azure-cli\\azure\\cli\\command_modules\\aro\\tests\\latest\\test_validators.py" | |
| ], | |
| "_justification": "[ARO] Dummy client_id value in test_validators.py unit tests (client_id_456)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These new suppressions are global
placeholdermatches, which can unintentionally suppress unrelated findings elsewhere in the repo. In particular,asdfghjklalso appears insrc/azure-cli/azure/cli/command_modules/resource/tests/latest/test-largesize-parameters.json, so this suppression would hide any CredScan hits there too. Please scope the suppression to the specific ARO test file (or use a more specific placeholder string) so only the intended false positive is suppressed.