Skip to content

fix(scripts): name the debug script's yes/no flag after what it holds (#1095) - #1096

Draft
isadeks wants to merge 2 commits into
mainfrom
fix/1095-codeql-debug-flag-name
Draft

isadeks wants to merge 2 commits into
mainfrom
fix/1095-codeql-debug-flag-name

Conversation

@isadeks

@isadeks isadeks commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Closes #1095

Area

  • cdk — infrastructure, handlers, constructs
  • agent — Python runtime / Docker image
  • cli — bgagent client
  • docs — guides or design sources (docs/guides/, docs/design/)
  • tooling — root mise.toml, scripts, CI workflows

Related

Changes

scripts/orchestration_debug.py prints whether an orchestration row names an OAuth secret. The value is only "yes" or "no", but it was held in a variable named has_oauth, and CodeQL reports the print as a logged password.

  • The flag is renamed to linked.
  • The comment that explained the alert as CodeQL following the whole row is replaced. The print one line above reads the same row and is not flagged, so that explanation did not fit.

The script's output is unchanged. I ran both modes (rows and list) on the same DynamoDB JSON before and after the change, and the output is byte-identical.

CodeQL result. The Python analysis of this branch reports no result on the changed lines, where main reports alert 32 on the same print. A pull-request analysis only reports results in changed lines, so the final confirmation is the analysis of main after the merge: alert 32 should then show as fixed.

Acknowledgment

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the project license.

…#1095)

CodeQL alert 32 (py/clear-text-logging-sensitive-data) flags the print
of `has_oauth` in scripts/orchestration_debug.py as a logged password.
The value is only "yes" or "no". CodeQL classifies a value by the name
of its variable, so rename the flag to `linked`.

The script prints the same lines as before.
…1095)

The CodeQL run on this branch reports no result on the changed lines, where main reports alert 32. Record the reason for the name next to it, so that a later rename does not bring the alert back.

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.

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

1 participant