feat(create-token): log workflow ref before token fetch when debug on - #904
Merged
Merged
Conversation
Print github.workflow_ref only when runner.debug is set (e.g. ACTIONS_STEP_DEBUG), before calling fetch-github-token. Made-with: Cursor
Contributor
There was a problem hiding this comment.
Pull request overview
Adds debug-only logging to the github/create-token composite action so the workflow reference is visible in logs before the token fetch step runs, helping troubleshoot token-related failures without depending on the fetched token.
Changes:
- Add a new composite step that prints
github.workflow_refonly when step debug logging is enabled (runner.debug == '1'). - Ensure the debug print runs before
elastic/ci-gh-actions/fetch-github-token.
Align with the rate-limit debug step: avoid shell: bash on Windows runners without Git Bash. Made-with: Cursor
v1v
reviewed
Apr 17, 2026
v1v
approved these changes
Apr 17, 2026
v1v
left a comment
Member
There was a problem hiding this comment.
We can enable it by default, by the way there is no windows support in the upstream:
Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com>
fr4nc1sc0-r4m0n
commented
Apr 17, 2026
github-merge-queue Bot
pushed a commit
that referenced
this pull request
Apr 17, 2026
…#904) * feat(create-token): log workflow ref before token fetch when debug on Print github.workflow_ref only when runner.debug is set (e.g. ACTIONS_STEP_DEBUG), before calling fetch-github-token. Made-with: Cursor * fix(create-token): skip workflow-ref debug echo on Windows Align with the rate-limit debug step: avoid shell: bash on Windows runners without Git Bash. Made-with: Cursor * Update github/create-token/action.yml Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com> * Apply suggestion from @fr4nc1sc0-r4m0n --------- Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com>
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Apr 17, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Apr 17, 2026
mallendem
approved these changes
Apr 21, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to Branch Protection failures
Apr 21, 2026
You're not authorized to push to this branch. Visit "About protected branches" for more information.
1 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
github/create-tokenthat echoesgithub.workflow_refwhen step debug logging is enabled (runner.debug == '1', e.g.ACTIONS_STEP_DEBUG).elastic/ci-gh-actions/fetch-github-tokenso workflow context is visible without depending on the fetched token.Validation
github/runnercontexts and compositeif/shell: bash.Risks / Known Gaps
Related issue: https://github.com/elastic/observability-robots/issues/3239