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

Fix 403 error by adding 'issues: write' permission to GitHub Actions. #194

Merged
merged 1 commit into from
Apr 9, 2025

Conversation

monochromegane
Copy link
Contributor

This README update addresses a 403 error caused by insufficient permissions to create labels via GitHub Actions.

POST https://api.github.com/repos/monochromegane/kmeans/issues/1/labels: 403 You do not have permission to create labels on this repository. [{Resource:Repository Field:label Code:unauthorized Message:}]
Error: POST https://api.github.com/repos/monochromegane/kmeans/issues/1/labels: 403 You do not have permission to create labels on this repository. [{Resource:Repository Field:label Code:unauthorized Message:}] status:403, ...

Error: Process completed with exit code 1.

I believe that tagpr requires additional permissions to create labels via POST requests to issues.
In my repository, it started working correctly after adding the above permission setting.
If this fix is appropriate, please consider reflecting it in the README.

@Songmu Songmu merged commit 666ea2e into Songmu:main Apr 9, 2025
3 checks passed
@Songmu
Copy link
Owner

Songmu commented Apr 9, 2025

Thank you!

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.

2 participants