workflow command
A specially formatted line, such as ::add-mask::value, that a step prints to ask the runner to do something.
In more detail
add-mask tells the runner to hide a value it did not know in advance, such as a fragment cut from a secret. Other commands set notices, warnings and groups in the log.
Example
echo "::add-mask::$prefix"Related terms
- secret masking — The runner's replacement of known secret values with asterisks in job logs.
- GITHUB_ENV — A file, named by the GITHUB_ENV variable, where a step writes name=value lines to set environment variables for later steps of the same job.
Taught in
- Securing Pipelines: Secrets Management — Continuous Integration & Continuous Delivery Pipelines
- Triggers In Depth: Filters, Schedules And Dispatch — GitHub Actions (GH-200) Exam Prep
- Workflow Structure: Jobs, Env, Services, Commands And Anchors — GitHub Actions (GH-200) Exam Prep
- Failed Runs: Debug Logging And Re-Running The Right Jobs — GitHub Actions (GH-200) Exam Prep
- action.yml: Inputs, Outputs, Runs And Branding — GitHub Actions (GH-200) Exam Prep
- Building And Debugging A JavaScript Action — GitHub Actions (GH-200) Exam Prep