-
Notifications
You must be signed in to change notification settings - Fork 155
feat(token): request nodejs.org GH_USER_TOKEN
#1016
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Bump @nodejs/tsc |
|
Why is it neeeded to add a token? Is https://github.com/nodejs/nodejs.org/pull/8231/files#diff-4446f61f8e35de22ab75a2a4f121ca046c28d1e56d5cf46254d8093c230b4ef4R22 not enough? |
|
We need to run the CI/CD on the created PRs. Using a GitHub workflow token won't run those checks, so we need a bot token |
Don't we need to add the label manually anyway? |
|
No, the actions that are required (linting, tests, builds) run on all PRs, regardless of the label. Some additional checks (which are optional) run on the label, since they need access to secrets, permissions, etc |
|
Security-wise, this is relatively problematic as it has been defined. I've added some comments to mitigate those concerns (leaking said token) via the use of GitHub environments. I would recommend permitting that environment only to members of @nodejs/releasers, @nodejs/build, and @nodejs/web-infra. |
FWIW for the "Create release proposal" automation, we workaround this by creating the PR as draft, and workflow are triggered only when the releaser marks the PR as ready for reviews. Maybe that's an approach that would make sense here as well |
|
Hmm, that may work! Thanks! I'll look into it |
|
Per the suggestion, and discussions in Slack |
|
The plan is to either:
|
Requesting a @nodejs-github-bot token with
contents:writepermissions to https://github.com/nodejs/nodejs.org for nodejs/nodejs.org#8231.cc @nodejs/web-infra @nodejs/releasers