Skip to content

Fix the automatic ID allocation workflow.#3612

Merged
gouttegd merged 2 commits intomasterfrom
fix-auto-id-allocation-workflow
Sep 15, 2025
Merged

Fix the automatic ID allocation workflow.#3612
gouttegd merged 2 commits intomasterfrom
fix-auto-id-allocation-workflow

Conversation

@gouttegd
Copy link
Collaborator

The automatic ID allocation workflow currently cannot be used in fully automated mode (after a PR has been merged), because it will always use the default GITHUB_TOKEN, which is not allowed to push to the master branch.

The workflow has a dedicated token (which is allowed to push to the master branch) specifically intended for the purpose of automatic ID allocation, but for the push step to use it, the checkout step needs to be configured not to persist the checkout credentials, which is what we do here.

The automatic ID allocation workflow currently cannot be used in fully
automated mode (after a PR has been merged), because it will always use
the default GITHUB_TOKEN, which is not allowed to push to the master
branch.

The action has a dedicated token (which should be allowed to push to the
master branch) specifically intended for the purpose of automatic ID
allocation, but for the push step to use it, the checkout step needs to
be configured _not_ to persist the checkout credentials, which is what
we do here.
@gouttegd gouttegd self-assigned this Sep 15, 2025
@gouttegd gouttegd requested a review from matentzn September 15, 2025 17:13
@gouttegd gouttegd merged commit 74c08bb into master Sep 15, 2025
@gouttegd gouttegd deleted the fix-auto-id-allocation-workflow branch September 15, 2025 18:47
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