Skip to content
Discussion options

You must be logged in to vote
Admin verified this answer by cipher20000 May 28, 2026

Yes , that’s expected behavior. ✅

GitHub Actions automatically masks any value in the logs that matches any configured secret, even if the secret isn’t directly referenced in the workflow.
So if a variable or output coincidentally matches a secret’s value, it will appear as *** in the logs.

This happens because GitHub’s masking system scans all log output and replaces anything that matches secret values to prevent accidental exposure. It doesn’t check where the value came from — only if it matches a known secret.

Example:
If you have a secret MY_TOKEN=12345, and a variable or step prints 12345, it will be masked as *** — even if MY_TOKEN isn’t used anywhere in that job.

In short:

🔒 GitHub…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer verified by Admin May 28, 2026
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Question Ask and answer questions about GitHub features and usage Misc General discussions about GitHub Actions that don't fit other found themes.
3 participants