Uh oh!
There was an error while loading. Please reload this page.
feat(token): request nodejs.org GH_USER_TOKEN - #1016
Conversation
avivkeller
commented
Oct 20, 2025
Bump @nodejs/tsc |
mcollina
commented
Oct 21, 2025
Why is it neeeded to add a token? Is https://github.com/nodejs/nodejs.org/pull/8231/files#diff-4446f61f8e35de22ab75a2a4f121ca046c28d1e56d5cf46254d8093c230b4ef4R22 not enough? |
avivkeller
commented
Oct 21, 2025
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 |
aduh95
commented
Oct 21, 2025
Don't we need to add the label manually anyway? |
avivkeller
commented
Oct 21, 2025
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 |
mcollina
commented
Oct 21, 2025
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. |
aduh95
commented
Oct 21, 2025
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 |
avivkeller
commented
Oct 21, 2025
Hmm, that may work! Thanks! I'll look into it |
avivkeller
commented
Oct 21, 2025
Per the suggestion, and discussions in Slack |
avivkeller
commented
Oct 21, 2025
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