Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

GitHub Actions Error Pushing With Workflow Modified [Snippets]

DZone 's Guide to

GitHub Actions Error Pushing With Workflow Modified [Snippets]

When creating a workflow for GitHub Action, a strange error can sometimes occur...

· Open Source Zone ·
Free Resource

After creating a workflow for GitHub Action, if you try to modify the workflow locally, then push to GitHub — you can incur a strange error.

You may also like: Building a Real-Time GitHub Issue Tracker Using Java and Deepstream

Here's an example of refusing to allow an integration to create or update .github/workflows/ci.yml: 

Figure 1: Error in pushing to Git Repository

The reason seems to be about different permissions used for authentication in the auth token. So, to solve the problem, you need to clear credentials and then try the operation again. In Windows, you need to use Credential Manager, as I described in that old post. Just delete every entry for GitHub, then try to push again; you will be asked again for credentials and then you should be able to push.

Figure 2: I got the error, then clear credentials in Credential Manager, finally I was able to push again.

Let me know in the comments if the error persists.

Further Reading

Building a Real-Time GitHub Issue Tracker Using Java and Deepstream

[DZone Refcard] Getting Started With Git

The 8 Best GitHub Integrations to Look at in 2019

Topics:
open source ,github ,error ,github error ,code snippet ,workflow

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}