ad-m / github-push-action

GitHub actions to push back to repository eg. updated code
MIT License
1.21k stars 228 forks source link

GITHUB_TOKEN not working #163

Closed 8MiYile closed 1 year ago

8MiYile commented 1 year ago

Hi guys, can you help me to check the error type of these two Actions? https://github.com/8Mi-Tech/CefDetectorX/actions/runs/4697499882/jobs/8328725776 https://github.com/8Mi-Tech/MCCustomSkinLoader/actions/runs/4697401819/jobs/8328726589

 ! [remote rejected] HEAD -> <branch_name> (refusing to allow a GitHub App to create or update workflow `<another_workflow_file>` without `workflows` permission)
ZPascal commented 1 year ago

Hi @8MiYile, I think you've missed specifying the right access rights. Please follow this example to reconfigure the permissions.

8MiYile commented 1 year ago

My Action is executed on Fork Repo, so that means about this part, what permissions should be added inside the file so that it can be pushed directly?

ZPascal commented 1 year ago

Do you want to push inside the upstream part or inside your forked repository?

8MiYile commented 1 year ago

It doesn't matter, I've finished fixing it PAT Yes

ZPascal commented 1 year ago

Great to hear that everything works now as expected. A PAT is mostly the recommended solution, to handle access issues.