You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CodeQL alert 32: debug script names a yes/no flag after the OAuth secret #1095
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
docs(scripts): say why the debug script's flag avoids the word oauth (#…