Skip to content

Create file fails lacking SHA #11

@vattert

Description

@vattert

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions