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

Workflow permission is required for pushing changes #458

Open
achyutjhunjhunwala opened this issue Mar 20, 2023 · 0 comments · Fixed by achyutjhunjhunwala/backport#1
Open

Comments

@achyutjhunjhunwala
Copy link

When setting up the PAT, we also need workflow permission and not just repo permissions as mentioned in the docs

{"level":"info","message":"Results","metadata":{"0":{"error":{"context":{"cmdArgs":["push","achyutjhunjhunwala","backport/8.7/pr-153290:backport/8.7/pr-153290","--force"],"code":1,"stderr":"To https://github.com/achyutjhunjhunwala/kibana.git\n ! [remote rejected]         backport/8.7/pr-153290 -> backport/8.7/pr-153290 (refusing to allow a Personal Access Token to create or update workflow `.github/workflows/add-to-imui-project.yml` without `workflow` scope)\nerror: failed to push some refs to 'https://github.com/achyutjhunjhunwala/kibana.git'\n","stdout":""},"name":"SpawnError"},"status":"unhandled-error","targetBranch":"8.7"}},"timestamp":"2023-03-20 15:32:07"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant