[chore] Why use GITHUB_READ_TOKEN in workflows #11301

Closed
opened 2025-11-02 09:33:45 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @harryzcy on GitHub (Jul 22, 2023).

Feature Description

Github automatically adds GITHUB_TOKEN to all actions. Is there a reason why we are using non-standard GITHUB_READ_TOKEN in some of the tests?

I searched around and I guess it's created when still using drone for CI. So we actually could update this?

Screenshots

No response

Originally created by @harryzcy on GitHub (Jul 22, 2023). ### Feature Description Github automatically adds `GITHUB_TOKEN` to all actions. Is there a reason why we are using non-standard `GITHUB_READ_TOKEN` in some of the tests? I searched around and I guess it's created when still using drone for CI. So we actually could update this? ### Screenshots _No response_
GiteaMirror added the type/proposal label 2025-11-02 09:33:45 -06:00
Author
Owner

@wolfogre commented on GitHub (Jul 24, 2023):

IIRC, GITHUB_TOKEN is used to checkout the code of Gitea, while GITHUB_READ_TOKEN is used to test migration from GitHub, it has only read access to go-gitea/test_repo. I don't think they're the same thing.

e81ccc406b/services/migrations/github_test.go (L20-L24)

@wolfogre commented on GitHub (Jul 24, 2023): IIRC, `GITHUB_TOKEN` is used to checkout the code of Gitea, while `GITHUB_READ_TOKEN` is used to test migration from GitHub, it has only read access to `go-gitea/test_repo`. I don't think they're the same thing. https://github.com/go-gitea/gitea/blob/e81ccc406bf723a5a58d685e7782f281736affd4/services/migrations/github_test.go#L20-L24
Author
Owner

@harryzcy commented on GitHub (Jul 27, 2023):

Thanks, closing as it's intended

@harryzcy commented on GitHub (Jul 27, 2023): Thanks, closing as it's intended
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#11301