Skip to content

[GH Actions] Fix authorization of pushing to other repos #47894

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 4 commits into from
Feb 14, 2022

Conversation

andrewbranch
Copy link
Member

Fixes all this red hopefully

According to https://stackoverflow.com/questions/64374179/how-to-push-to-another-repository-in-github-actions, GH Actions agents are configured to send $GITHUB_TOKEN as the AUTHORIZATION HTTP header on git requests to GitHub, which would thwart the attempt to pass the PAT as part of the remote URL.

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Feb 14, 2022
@andrewbranch andrewbranch force-pushed the bug/related-repos-workflow branch from bfe6566 to 0d1ad7e Compare February 14, 2022 20:27
@andrewbranch andrewbranch merged commit 03f9035 into main Feb 14, 2022
@andrewbranch andrewbranch deleted the bug/related-repos-workflow branch February 14, 2022 20:40
@andrewbranch andrewbranch changed the title [GH Actions] Implicitly use AUTHORIZATION header instead of PAT-in-URL [GH Actions] Fix authorization of pushing to other repos Feb 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants