Can I edit the main.workflow github-actions file locally? #25337
-
If I change my main.workflow file locally, not in the master branch, the commit and push the change, I get this error from push command:
|
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
HI @baruchiro, Thanks for being here! If you are using GitHub desktop there is currently a bug that causes this error when attempting to push commits from GitHub Actions. As a workaround, you can use the Git API until the fix for this issue is released. Since the issue used for tracking this bug is not external to the public, I would recommend checking in with us again in a week or two for an update. |
Beta Was this translation helpful? Give feedback.
-
I’m afraid I did not quite understand. |
Beta Was this translation helpful? Give feedback.
-
Hi @baruchiro , You’re probably using a Git client of some sort which is using an OAuth token to pull/push to Github. I would suggest updating upstream to use ssh or https with your own credentials / personal access tokens instead of OAuth tokens given to third-party apps. |
Beta Was this translation helpful? Give feedback.
-
Yes, the main.workflow can be edited locally and changes pushed to the GitHub-hosted repository. The error message doesn’t mean exactly what you’re describing though:
An “integration” is a GitHub App, typically. Additionally, the But as a real user, not a GitHub App or Action, you modified I hope that helps! |
Beta Was this translation helpful? Give feedback.
-
Hi @andreag, > Since the issue used for tracking this bug is not external to the public, I would recommend checking in with us again in a week or two for an update. I’m running into this issue, and curious if there’s any news on the fix from GitHub’s side? Thanks, -Eric |
Beta Was this translation helpful? Give feedback.
-
I’m observing this through git command line. Marking this issue as solved is very misleading. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the explanation! Is there a way to allow permission for an ‘Integration’ (in my case a restyle bot) permission to modify workflow? Log: https://restyled.io/gh/hXtreme/repos/HCP-Project/jobs/140246 |
Beta Was this translation helpful? Give feedback.
-
For the interested, I got the error trying to push from VS, but not from the terminal, (I am using signed commits). OS: Ubuntu. |
Beta Was this translation helpful? Give feedback.
HI @baruchiro,
Thanks for being here! If you are using GitHub desktop there is currently a bug that causes this error when attempting to push commits from GitHub Actions. As a workaround, you can use the Git API until the fix for this issue is released.
Since the issue used for tracking this bug is not external to the public, I would recommend checking in with us again in a week or two for an update.