Repository navigation
{CI} Suppress dummy PostgreSQL service principal password - #34389
Naga Nandyala (naga-nandyala) merged 2 commits into
Conversation
Follow existing placeholder suppressions for the unused password returned by the PostgreSQL deployment unit-test mock. This addresses CSCAN-GENERAL0060 without excluding the test file. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the dummy PostgreSQL password suppression.
No open issues 🎉
What changed in this PR
Adds a Credential Scanner suppression for the dummy PostgreSQL service principal password introduced in #34308, following the existing placeholder-suppression pattern.
Changes:
- Suppresses the literal value
unusedrepository-wide, with a justification identifying the test mock. - Preserves existing suppressions without excluding the test file or modifying production code or tests.
| File | Description |
|---|---|
scripts/ci/credscan/CredScanSuppressions.json |
Adds the unused placeholder suppression and its PostgreSQL test justification. |
Review effort: Balanced
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
Skip the 51 recorded scenarios failing after .NET 8 and PowerShell 7.4 reached their recorded end-of-life date on 2026-11-10. Use existing method-level unittest.skip decorators and document that runtimes and recordings need updating before re-enabling the tests. Leave production EOL validation and all other tests unchanged. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Cherry-picked the EOL test-skip commit from #34391 as 398fc9b so this branch can validate the credential-scanner suppression without the 51 unrelated App Service EOL failures blocking its test jobs. The three App Service test files match the original EOL fix exactly. No Backup fixes or unrelated changes were included. The EOL changes temporarily appear in this PR diff and should drop out once #34391 lands in dev. Pushing the commit requests fresh CI; unrelated failures may still require separate fixes. |
🤖 PR Validation —⚠️ Review suggested
This PR adds warning or check suppressions. Fix the underlying warning where possible and justify each remaining suppression in a code comment or the PR description.
52 added suppressions
scripts/ci/credscan/CredScanSuppressions.json"placeholder": "unused",scripts/ci/credscan/CredScanSuppressions.json"_justification": "[PostgreSQL] Dummy service principal password returned by the create_service_principal_for_rbac mock…src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_access_restriction_commands.py@unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_access_restriction_commands.py@unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_access_restriction_commands.py@unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_access_restriction_commands.py@unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_access_restriction_commands.py@unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_access_restriction_commands.py@unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_access_restriction_commands.py@unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_access_restriction_commands.py@unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py@unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py@unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py@unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py@unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py@unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py@unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py@unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py@unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py@unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py@unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py@unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py@unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py@unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py@unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py@unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py@unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py@unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py@unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py@unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_commands.py@unittest.skip('Recorded runtime reached end-of-life on 2026-11-10; update runtime and re-record.')22 more not shown.
Description
Add a Credential Scanner placeholder suppression for
unused, the dummy password returned by thecreate_service_principal_for_rbacmock insrc/azure-cli/azure/cli/command_modules/postgresql/tests/unit/test_deploy_commands.py.The fixture was introduced by #34308. Build 20261110.6 flags line 54 with
CSCAN-GENERAL0060(General Password). This is a mock value, not a real credential.Follows the existing dummy-value suppression pattern in #33279 and #32847. Only the literal placeholder is added; the test file is not excluded, existing suppressions are unchanged, and no production code or tests are modified. Placeholder suppressions apply repository-wide to that dummy value, consistent with those precedents.
Validation
git diff --checkpassed.History Notes
CI-only change; no customer-facing behavior change.