Skip to content

CodeQL alert 32: debug script names a yes/no flag after the OAuth secret #1095

In progress

Description

@isadeks

Problem

CodeQL alert 32 (py/clear-text-logging-sensitive-data, high) has been open on main since #695. It flags this line of scripts/orchestration_debug.py:

print(f"          release_ctx: user={s(m, 'platform_user_id')}  oauth={has_oauth}")

has_oauth is only "yes" or "no": it says whether the row names an OAuth secret, and the script never reads the secret or its ARN. The alert is a false positive.

CodeQL classifies a value as sensitive by the name of the variable that holds it, and it reports this one as "(password)". The print one line above reads the same row and is not flagged, so the row is not what CodeQL follows. The likely cause is the variable name has_oauth.

The open alert also gets re-reported as new on any pull request that moves these lines, which fails the CodeQL check there (#1092).

Fix

Give the yes/no flag a name that does not mention the credential. The output of the script stays the same.

The comment above the line explains the alert as CodeQL following the whole row. That explanation does not fit the unflagged print, so it goes with the rename.

Acceptance

  • CodeQL reports alert 32 as fixed on the pull request.
  • scripts/orchestration-debug.sh <orchestration_id> prints the same lines as before.

Activity

  1. added
    bug
    security
    on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsecuritytooling

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions