Skip to content

ci(release): push CHANGELOG to develop via RELEASE_TOKEN PAT#12

Merged
DGINXREAL merged 1 commit into
developfrom
chore/release-token-push
Jun 12, 2026
Merged

ci(release): push CHANGELOG to develop via RELEASE_TOKEN PAT#12
DGINXREAL merged 1 commit into
developfrom
chore/release-token-push

Conversation

@DGINXREAL

Copy link
Copy Markdown
Member

The protect-develop ruleset blocks direct pushes to develop, and the GitHub Actions bot cannot be added as a bypass actor on a user-owned (non-org) repo — it's absent from both the API and the UI bypass list.

Fix: the changelog job now checks out with a RELEASE_TOKEN PAT. A push authenticated by an admin-owned PAT is attributed to that admin, who is already a bypass actor (RepositoryRole/5, mode always) in the ruleset — so the CHANGELOG push to develop succeeds.

Required before the next release

Create the secret:

  1. Create a fine-grained PAT — Settings → Developer settings → Fine-grained tokens:
    • Resource owner: your account · Repository access: only NoiXdev/s3Manager
    • Repository permissions: Contents → Read and write
  2. Add it as a repo secret named RELEASE_TOKEN (Settings → Secrets and variables → Actions).

No workflow-file changes are pushed by the release job, so Contents is the only permission needed.

The protect-develop ruleset blocks direct pushes to develop, and the GitHub
Actions bot can't be added as a bypass actor on a user-owned repo. Pushing
with an admin-owned fine-grained PAT (Contents: read/write) attributes the
push to the admin, who is already a bypass actor in the ruleset.

Requires a RELEASE_TOKEN repo secret.
@DGINXREAL
DGINXREAL merged commit 9626964 into develop Jun 12, 2026
1 check passed
@DGINXREAL
DGINXREAL deleted the chore/release-token-push branch June 12, 2026 03:48
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.

1 participant