Skip to content

Avoid false warnings for valid service connection credentials - #737

Open
pcbeingused333 wants to merge 1 commit into
Checkmarx:mainfrom
pcbeingused333:fix/ast-azure-plugin-664
Open

pcbeingused333 wants to merge 1 commit into
Checkmarx:mainfrom
pcbeingused333:fix/ast-azure-plugin-664

Conversation

@pcbeingused333

Copy link
Copy Markdown

Azure DevOps service connections can authenticate with either an API key or an OAuth client ID and secret. The scan task queried both sets of credentials as required, so a valid connection logged a message about the unused authentication method.

Read the endpoint fields as optional and report missing credentials only when the connection has neither an API key nor a complete OAuth pair. Local tests cover OAuth, API key, missing credentials, and an incomplete OAuth pair.

Prepared with the help of an AI coding assistant.

Fixes #664

@pcbeingused333
pcbeingused333 requested a review from a team November 27, 2026 11:44

This branch has not been deployed

No deployments
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.

[BUG] Misleading error messages

1 participant