The flagged credential flow belongs to an explicit dev/ops diagnostics command: it obtains an audience-bound token and sends it to the corresponding diagnostics endpoint. The manifest’s prepare hook is for Git hooks, and no automatic credential collection or unrelated destination was found.
Static reason
High-risk behavior combination matched malicious policy.; previous stored version diff introduced dangerous source
Trigger
Explicit user invocation of the diagnose command; session tracing requires a session, project or user selector.
Impact
Returns health or session diagnostic data to the CLI user.
Mechanism
Uses Google application credentials, service-account impersonation, a configured diagnostics token or gcloud to obtain an audience-bound identity token, then sends it to the selected control-plane diagnostics endpoint.
Evidence
package.jsondist/index.jsdist/diagnose.js
Network endpoints5
iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/{serviceAccount}:generateIdTokencp-api-ops-dev-97683904813.us-east4.run.app