What is the maximum size of a single step output set via $GITHUB_OUTPUT?
Select an answer to reveal the explanation.
Short Explanation
The 1 MB limit applies to the GITHUB_OUTPUT file as a whole — very large data should go in artifacts, not outputs.
Full Explanation
The $GITHUB_OUTPUT file has a total file size limit of 1 MB across all outputs written during a step. Individual output values don't have separate per-output limits, but the combined file content must stay under 1 MB. For large data (build manifests, JSON configurations, file lists), use artifacts or the job summary (GITHUB_STEP_SUMMARY) instead. Step outputs are meant for lightweight string values like version numbers, boolean flags, or short identifiers. Values that exceed sensible sizes should be written to files and uploaded as artifacts.
Prefer to study offline? Printable PDF study book + test engine ($7.50, unofficial). These questions stay free here.