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

Create file fails lacking SHA #11

Open
vattert opened this issue Sep 12, 2022 · 1 comment
Open

Create file fails lacking SHA #11

vattert opened this issue Sep 12, 2022 · 1 comment

Comments

@vattert
Copy link

vattert commented Sep 12, 2022

It seems that whenever trying to force overwrite a file to a repo that already exists with gh code-scanning enable -f --git-push

Seems to fail with the following error.

b'2022-09-12 20:25:46,677 2137 ERROR org/test: cannot create file ".github/workflows/codeql-analysis.yml": gh: Invalid request.\n\n"sha" wasn't supplied. (HTTP 422)\n'

This more tends to be an issue for repos where custom workflows are used, vs codeql where when you enable it once thats all you need.

@mario-campos
Copy link
Collaborator

I'll take a look at it. Thanks for the report.

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