Allow _optional_ token to be provided#40
Merged
Conversation
ldziedziul
approved these changes
Apr 13, 2026
JackPGreen
added a commit
that referenced
this pull request
Apr 14, 2026
In #40, a token `input` added - although it _technically works_, GitHub prevents you from actually passing in a `secret` when you want to _use_ it, so in practice it's useless: <img width="482" height="572" alt="image" src="https://github.com/user-attachments/assets/94907788-30fb-4a81-996e-5ea8bae92ce4" /> Updated to correctly define it as a `secret`. Example execution: - [with a valid token showing it actually works](https://github.com/JackPGreen/backport-test/actions/runs/24395038764/job/71250635521) - [with an invalid token showing it is actually using the token because it fails to authenticate](https://github.com/JackPGreen/backport-test/actions/runs/24395135078)
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.
When the
github.tokenis used to create the backport, any subsequent action (e.g. one triggered on a new PR) is skipped due to GitHub workflow triggering rules.To workaround this, we should allow the option to provide a non-bot token so GitHub thinks the PR is raised by a "real" user.
Slack discussion
Example execution (without token to prove it doesn't break existing).