Skip to content

Add require-in-the-middle release token#951

Merged
legendecas merged 2 commits intonodejs:mainfrom
legendecas:require-in-the-middle
Feb 6, 2025
Merged

Add require-in-the-middle release token#951
legendecas merged 2 commits intonodejs:mainfrom
legendecas:require-in-the-middle

Conversation

@legendecas
Copy link
Copy Markdown
Member

@legendecas legendecas commented Feb 6, 2025

The requested token should have the following permissions:

permissions:
  contents: write
  pull-requests: write

Refs: nodejs/require-in-the-middle#103

Copy link
Copy Markdown
Member

@mhdawson mhdawson left a comment

Choose a reason for hiding this comment

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

LGTM

@mhdawson
Copy link
Copy Markdown
Member

mhdawson commented Feb 6, 2025

I believe I have added the token

@timfish
Copy link
Copy Markdown

timfish commented Feb 6, 2025

Looks like it failed to create the release branch:
RequestError [HttpError]: Error creating Pull Request: Resource not accessible by personal access token
https://github.com/nodejs/require-in-the-middle/actions/runs/13188938824/job/36817662876#step:2:197

Was the NPM token added as a secret called RELEASE_PLEASE_GITHUB_TOKEN?
I guess the only thing is having the correct permissons?

@legendecas
Copy link
Copy Markdown
Member Author

I granted @nodejs-github-bot write access to the repo and the workflow is now working.

@legendecas legendecas merged commit 8ef2f39 into nodejs:main Feb 6, 2025
@legendecas legendecas deleted the require-in-the-middle branch February 6, 2025 23:04
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