Skip to content

Conversation

@avivkeller
Copy link
Member

Requesting a @nodejs-github-bot token with contents:write permissions to https://github.com/nodejs/nodejs.org for nodejs/nodejs.org#8231.

cc @nodejs/web-infra @nodejs/releasers

@avivkeller
Copy link
Member Author

Bump @nodejs/tsc

@mcollina
Copy link
Member

@avivkeller
Copy link
Member Author

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
Copy link
Contributor

aduh95 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

Don't we need to add the label manually anyway?

@avivkeller
Copy link
Member Author

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
Copy link
Member

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
Copy link
Contributor

aduh95 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

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
Copy link
Member Author

Hmm, that may work! Thanks! I'll look into it

@avivkeller
Copy link
Member Author

Per the suggestion, and discussions in Slack

@avivkeller avivkeller closed this Oct 21, 2025
@avivkeller
Copy link
Member Author

The plan is to either:

  1. Mark all checks as optional, use GITHUB_TOKEN
  2. Open PR as draft

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants