Skip to content

[ci] Make maintainer check always remote #32727

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

Merged
merged 1 commit into from
Mar 24, 2025
Merged

[ci] Make maintainer check always remote #32727

merged 1 commit into from
Mar 24, 2025

Conversation

poteto
Copy link
Member

@poteto poteto commented Mar 24, 2025

To prevent local modification of the MAINTAINERS file we now always fetch from main instead.

To prevent local modification of the MAINTAINERS file we now always fetch from `main` instead.
@github-actions github-actions bot added the React Core Team Opened by a member of the React Core Team label Mar 24, 2025
poteto added a commit to reactjs/react.dev that referenced this pull request Mar 24, 2025
facebook/react#32727 removes the `is_remote` param.
@react-sizebot
Copy link

Comparing: 2d40460...760c59f

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.js = 6.68 kB 6.68 kB = 1.83 kB 1.83 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 515.14 kB 515.14 kB = 91.74 kB 91.74 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.69 kB 6.69 kB = 1.83 kB 1.83 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 614.35 kB 614.35 kB = 108.76 kB 108.76 kB
facebook-www/ReactDOM-prod.classic.js = 650.34 kB 650.34 kB = 114.79 kB 114.79 kB
facebook-www/ReactDOM-prod.modern.js = 640.62 kB 640.62 kB = 113.23 kB 113.23 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against 760c59f

@@ -30,41 +26,27 @@ jobs:
outputs:
is_core_team: ${{ steps.check_if_actor_is_maintainer.outputs.result }}
steps:
- uses: actions/checkout@v4
Copy link
Member

Choose a reason for hiding this comment

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

@poteto have you thought about using action/checkout to checkout the main branch? It has options for selecting the repo and branch, so it could be:

steps:
  - uses action/checkout@v4
  - with:
    ref: main
    repository: facebook/react

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure if it's a good idea, from what I read it's not a good idea to checkout any code from something triggered via pull_request_target since it has write access to the target repo and access to secrets.

Always fetching it from main seems like the safer choice, albeit less convenient

@poteto poteto merged commit ea5f065 into main Mar 24, 2025
243 checks passed
@poteto poteto deleted the pr32727 branch March 24, 2025 20:40
poteto added a commit to reactjs/react.dev that referenced this pull request Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants