Skip to content

feat: add github app authentication instead of comment_bot_token - #643

Merged
paulinebm merged 1 commit into
mainfrom
change_perms_method
Dec 15, 2025
Merged

paulinebm merged 1 commit into
mainfrom
change_perms_method

Conversation

@paulinebm

@paulinebm paulinebm commented Sep 30, 2025 •

Copy link
Copy Markdown
Contributor

Hi,

We have to change the way we inject COMMENT_BOT_TOKEN. Indeed, we have reached the number of repositories able to access this fine-grained token.

I created a GitHub app to bypass this limitation. We also improve security by generating a temporary token for each workflow execution. This token is revoked automatically at the end of the process.

I introduce 2 news secrets to achieve that.

Could you just approve, I will merge at the end of the workflows update task.

Thanks

cc @glegendre01 @jagwar for viz

@paulinebm
paulinebm requested a review from mishig25 September 30, 2025 14:27
paulinebm added a commit to huggingface/transformers that referenced this pull request Sep 30, 2025

@glegendre01 glegendre01 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@paulinebm paulinebm changed the title Change generation auth token for COMMENT_BOT_TOKEN feat: add github app authentication instead of comment_bot_token Dec 11, 2025
@paulinebm
paulinebm requested review from Wauplin and removed request for mishig25 December 11, 2025 16:10

@Wauplin Wauplin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the ping! Looks good to me 👍

@Wauplin

Wauplin commented Dec 11, 2025

Copy link
Copy Markdown
Contributor

(failing tests are unrelated btw, I haven't got the time to look into them)

@paulinebm
paulinebm merged commit 3571f63 into main Dec 15, 2025
@paulinebm
paulinebm deleted the change_perms_method branch December 15, 2025 10:11
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.

3 participants