GH-200 · Question #12
As a developer, how should you enable step debug logging for a workflow?
The correct answer is D. Set the ACTIONS_STEP_DEBUG secret or variable at the repository level to true. To enable step debug logging in GitHub Actions, you set a secret or variable named ACTIONS_STEP_DEBUG to the value 'true' at the repository, environment, or organization level. When this is set, each step in the workflow will output detailed debug information, including…
Question
As a developer, how should you enable step debug logging for a workflow?
Options
- AInclude the following code block in your workflow:
- BUse the --actions-step-debug flag when calling the workflow.
- CInclude the following code block in your workflow:
- DSet the ACTIONS_STEP_DEBUG secret or variable at the repository level to true.
How the community answered
(36 responses)- A6% (2)
- B3% (1)
- D92% (33)
Explanation
To enable step debug logging in GitHub Actions, you set a secret or variable named ACTIONS_STEP_DEBUG to the value 'true' at the repository, environment, or organization level. When this is set, each step in the workflow will output detailed debug information, including input/output values for actions. There is no --actions-step-debug CLI flag, and debug logging is not enabled through inline workflow YAML code blocks - it is controlled via the repository's secrets or variables settings.
Topics
Community Discussion
No community discussion yet for this question.