Skip to content

Comment for Registrator with the workflow's own token - #48

Merged
CiaranOMara merged 1 commit into
developfrom
feature/register-errors
Nov 1, 2026
Merged

CiaranOMara merged 1 commit into
developfrom
feature/register-errors

Conversation

@CiaranOMara

Copy link
Copy Markdown
Member

Registrator acts on comments from github-actions[bot], as well as from collaborators and members of the repository's organization, so the register job comments with GITHUB_TOKEN and needs no machine user. The job takes its caller's permissions, contents: write, since a called job that asks for more than its caller grants doesn't start; so callers that pass REGISTRATOR_TOKEN with contents: read still work, and it comments instead where it's given.

Where GitHub refuses the comment, the error gives GitHub's message and what the token needs, and the job summary the comment to make by hand.

Registrator acts on comments from github-actions[bot], as well as from
collaborators and members of the repository's organization, so the
register job comments with GITHUB_TOKEN and needs no machine user.
The job takes its caller's permissions, contents: write, since a called
job that asks for more than its caller grants doesn't start; so callers
that pass REGISTRATOR_TOKEN with contents: read still work, and it
comments instead where it's given.

Where GitHub refuses the comment, the error gives GitHub's message and
what the token needs, and the job summary the comment to make by hand.
@CiaranOMara
CiaranOMara merged commit 40dc882 into develop Nov 1, 2026
9 checks passed
@CiaranOMara
CiaranOMara deleted the feature/register-errors branch November 2, 2026 02:15
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