Skip to content

Sarif Upload Does not work from docker container  #10188

@FaiqueAli

Description

@FaiqueAli

Sarif Upload failed from container

I am trying to upload .sarif file from a windows docker container by using PAT to a github private repo.
my Codeql CLI upload command from a container is

RUN codeql github upload-results --repository=abc/xyz --ref=refs/heads/xxx --commit=xxx --sarif=C:\\xyz\\result.sarif --github-url=https://PAT@github.com/abc/ --github-auth-stdin

while this command is working perfectly from the local server (not docker)
but when I execute the same inside a container I got the following error..

IllegalStateException: Standard input stream is empty while processing argument at or before arg[5] '-a' in [--repository=abc/xyz, --ref=refs/heads/xxx, --commit=xxx, --sarif=C:\\xyz\\result.sarif, --github-url=https://PAT@github.com/abc/, -a]: java.lang.IllegalStateException: Standard input stream is empty
Try codeql github upload-results --help for usage help.

does anyone let me know what I am doing wrong?

Thanks :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions