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

how to allow workflows to be modified #3558

Open
shug0131 opened this issue Dec 6, 2024 · 1 comment
Open

how to allow workflows to be modified #3558

shug0131 opened this issue Dec 6, 2024 · 1 comment

Comments

@shug0131
Copy link

shug0131 commented Dec 6, 2024

Subject of the issue

! [remote rejected] auto-detect -> auto-detect (refusing to allow a GitHub App to create or update workflow `.github/workflows/bakefile-test.yml` without `workflows` permission)

Is the error code I get. I can't workout how to grant permission . Much confusion online here.

The README says

"If pull requests could contain changes to Actions workflows you may also need the workflows scope."

But not clear if this is by changing permissions in the .yml file. Or if tokens are need. Tokens seem very very confusing. I'm at a loss how I create one for a repo that is within my organisation. Or how to link one to the action.

@peter-evans
Copy link
Owner

Hi @shug0131

The default token in repositories doesn't have the workflow scope. You will need to create a PAT and give it the workflow scope.

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

No branches or pull requests

2 participants