secret masking
The runner's replacement of known secret values with asterisks in job logs.
Any transformation of a secret defeats masking and prints it in the clear.
In more detail
It compares exact bytes, so a secret that is encoded, hashed, reversed, uppercased or split across lines passes straight through. Treat masking as a net for accidents, never as a control you rely on.
Related terms
- secret — Any value that grants access, such as a password, access token or private key, and must be kept out of code and version control.
- workflow command — A specially formatted line, such as ::add-mask::value, that a step prints to ask the runner to do something.
- Base64 — A way to write any bytes using only 64 safe text characters, so binary data can travel in places that expect text.
Taught in
- Securing Pipelines: Secrets Management — Continuous Integration & Continuous Delivery Pipelines
- Defining Environments in GitHub Actions — Continuous Integration & Continuous Delivery Pipelines