Interview Prep/GitHub Actions/Permissions, Tokens & Secrets

A secret appears in plain text in the logs despite masking.

IntermediateTroubleshootingPermissions, Tokens & Secrets
Answer

Likely causes → The printed form differs from the registered value: base64, JSON-escaped, URL-encoded, a substring, or with trailing newline differences; or the value was generated at runtime and never masked.

Diagnose → Find the step and the transformation.

Fix → Rotate immediately, delete the run logs, add ::add-mask:: for runtime and derived values, remove set -x.

Prevent → Never echo secrets; review debug output before enabling ACTIONS_STEP_DEBUG on sensitive workflows.

All GitHub Actions questions Roadmap: GitHub Actions

More on Permissions, Tokens & Secrets