Skip to content

fix(gh-actions/go/generate): Remove unnecessary token perms check#111

Open
adombeck wants to merge 1 commit intomainfrom
fix-unnecessary-token-perm-check
Open

fix(gh-actions/go/generate): Remove unnecessary token perms check#111
adombeck wants to merge 1 commit intomainfrom
fix-unnecessary-token-perm-check

Conversation

@adombeck
Copy link
Contributor

We introduced this check in #69 because we passed the GITHUB_TOKEN to the third-party arduino/setup-protoc action.

We're not using that action anymore since 9f12ec0 and instead download protoc directly from the GitHub releases. We still use the GITHUB_TOKEN to avoid rate limiting, but it's only used in a curl call to api.github.com. That is a trusted site, so there's no point in checking the token permissions.

We introduced this check in #69 because we passed the GITHUB_TOKEN to
the third-party arduino/setup-protoc action.

We're not using that action anymore since
9f12ec0 and instead download protoc
directly from the GitHub releases.  We still use the GITHUB_TOKEN to
avoid rate limiting, but it's only used in a curl call to
api.github.com. That is a trusted site, so there's no point in checking
the token permissions.
@adombeck
Copy link
Contributor Author

I'm unsure if we should remove the now unused gh-perms action. On the one hand, it could be useful again in the future. On the other hand, it's more code to maintain for (currently) no value.

@adombeck adombeck marked this pull request as ready for review February 19, 2026 20:45
@adombeck adombeck requested a review from didrocks as a code owner February 19, 2026 20:45
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

Comments