Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting debug using GitHub Action variables #2234

Merged
merged 1 commit into from
Oct 31, 2022

Conversation

tauhid621
Copy link
Contributor

What

This PR adds support to set debug variables using GitHub Action Variables which are available in vars context.

Why

Currently, debug variables(ACTIONS_STEP_DEBUG and ACTIONS_RUNNER_DEBUG) are being set using secrets. Since they are secrets, the value is not displayed in UI. With the introduction of plain text variables, it would be easier for users to manage their debug logging using variables.

How

Before setting global variables we add the debug variables from vars context in case they are not already present in the request message.

The precedence is given to variable in the agent request message which is passed using secrets. So if a repo has ACTIONS_STEP_DEBUG secret as false and the same variable as true. We will consider ACTIONS_STEP_DEBUG to be false

https://github.com/github/c2c-actions-ace/issues/167

@tauhid621 tauhid621 requested a review from a team as a code owner October 27, 2022 11:47
@TingluoHuang TingluoHuang merged commit dad7ad0 into actions:main Oct 31, 2022
nikola-jokic pushed a commit to nikola-jokic/runner that referenced this pull request May 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants