Interview Prep/GitHub Actions/Contexts, Expressions, Env & Outputs

Why do outputs disappear with "Skip output 'x' since it may contain secret"?

AdvancedConceptContexts, Expressions, Env & Outputs
Answer

The runner refuses to pass a job output whose value contains any registered secret or masked string, to prevent secrets leaking across jobs. It also happens when the output merely contains a masked substring, for example an AWS account ID that is also used as a secret, or a short secret like prod that appears in many values. Fix: do not register non-secret values as secrets (use vars), or pass the data via an artifact, or re-derive it in the downstream job.

All GitHub Actions questions Roadmap: GitHub Actions

More on Contexts, Expressions, Env & Outputs