A step must export a multi-line PEM certificate as a step output named 'cert'. Which approach follows current GitHub Actions guidance?
Select an answer to reveal the explanation.
Short Explanation and Infographic
Multi-line step outputs use the name<<DELIMITER form appended to $GITHUB_OUTPUT. GITHUB_ENV does not cross jobs; action.yml is for actions, not workflows.
Full explanation below image
Full Explanation
The supported multi-line output syntax writes to $GITHUB_OUTPUT: cert<<EOF -----BEGIN CERTIFICATE----- ... EOF Choose a delimiter that cannot appear in the body. Single-line name=value still works for short values. $GITHUB_ENV sets environment variables for subsequent steps in the same job only, not job outputs for other jobs. Workflow files do not use action.yml outputs. Base64 is allowed as an alternative encoding but is not required. After defining a job outputs map, downstream jobs can consume the value via needs.