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

Can't commit changes to GitHub action files #530

Open
elegaanz opened this issue Jan 30, 2025 · 0 comments
Open

Can't commit changes to GitHub action files #530

elegaanz opened this issue Jan 30, 2025 · 0 comments
Labels
bug Something isn't working. integration Integration with other tools.

Comments

@elegaanz
Copy link
Member

Description

When a Typst project is connected to a GitHub repository with GitHub action files, it is not possible to edit these files in Typst: an Internal server error toast is shown when trying to push the changes.

By looking at the logs, this error is sent by GitHub:

One or more branches were not updated:
  - refs/heads/main: refusing to allow an OAuth App to create or update workflow `.github/workflows/build.yml` without `workflow` scope"

I don't think we should add the "workflow" scope to the permissions of the OAuth app. But we should show this specific error message in the toast. Another option would be to make the CI files read-only, with an informative message on why this is so.

Reproduction URL

No response

Browsers

No response

OS

No response

@elegaanz elegaanz added bug Something isn't working. integration Integration with other tools. labels Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working. integration Integration with other tools.
Projects
None yet
Development

No branches or pull requests

1 participant