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 GHA's token #310

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

lishaduck
Copy link
Contributor

GHA provides a token itself, we don't need to generate one. This is more-fine grained, easier to change if needed, and more secure.

I think the existing contents: read is sufficient, but it might not be. We'll see.

Based on #309 (comment).

GHA provides a token itself, we don't need to generate one.
This is more-fine grained, easier to change if needed, and more secure.

I think the existing `contents: read` is sufficient, but it might not be.
We'll see.
@lishaduck
Copy link
Contributor Author

lishaduck commented Nov 11, 2024

Oh, the script needs a username. I'll think on this.

@lishaduck lishaduck marked this pull request as draft November 11, 2024 02:14
@lishaduck
Copy link
Contributor Author

Ok, so the GITHUB_TOKEN is for a builtin github app, not your own account, so that i.e., contributing to a project with extensive doesn't use up your personal rate. Thus, there's not a username associated with it. However, I think we don't need a username to make authenticated requests, do we? Could we make it optional?

@lishaduck lishaduck changed the title ci: use actions' token Use GHA token Nov 11, 2024
@lishaduck lishaduck changed the title Use GHA token Use GHA's token Nov 11, 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.

1 participant