Skip to content

Commit

Permalink
[ci] Remove need for GitHub token
Browse files Browse the repository at this point in the history
React is a public repo so no token is needed.

ghstack-source-id: 87e5456b80c822f1c596b0195aaa4236530a6b11
Pull Request resolved: #30482
  • Loading branch information
poteto committed Jul 26, 2024
1 parent c5f3a6f commit 7aad777
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions scripts/release/download-experimental-build-ghaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ const REPO = 'react';
const WORKFLOW_ID = 'runtime_build_and_test.yml';
const GITHUB_HEADERS = `
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${process.env.GH_TOKEN}" \
-H "X-GitHub-Api-Version: 2022-11-28"`.trim();

function getWorkflowId() {
Expand Down Expand Up @@ -171,11 +170,4 @@ const main = async () => {
}
};

if (process.env.GH_TOKEN == null) {
console.log(
theme`{error Expected GH_TOKEN to be provided as an env variable}`
);
process.exit(1);
}

main();

0 comments on commit 7aad777

Please sign in to comment.