Skip to content
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

Use auto generated GITHUB_TOKEN instead of PAT #116

Closed
wants to merge 2 commits into from

Conversation

linux4life798
Copy link

You don't need to use a Personal Access Token anymore.
You can use the GitHub Action automatically supplied GITHUB_TOKEN, instead.

We can use the automatically generated GITHUB_TOKEN
instead of needing to generate a Personal Access Token.

The key is to enable write permission for contents in the workflow
file.
@linux4life798
Copy link
Author

Looks like the difference is that using the GITHUB_TOKEN to push to a repo will not trigger subsequent action. Using the PAT will trigger them. See https://github.com/orgs/community/discussions/25702#discussioncomment-3248819.

@chadfawcett chadfawcett requested a review from a team April 29, 2024 18:53
@heiskr
Copy link
Contributor

heiskr commented Apr 30, 2024

Hmm doesn't seem to be an issue associated with the pull request. For most folks I'd imagine you'd need a PAT to access two different repositories.

@heiskr
Copy link
Contributor

heiskr commented May 21, 2024

I'm going to go ahead and close this pull request, but feel free to open a new one if needed.

@heiskr heiskr closed this May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants