Skip to content

CodeQL adds redundant slash to upload sarif file endpoint #15020

Open
@filipss379

Description

@filipss379

I use Azure DevOps pipeline to perform CodeQL code scanning. It goes well until I try to upload sarif file to github. I use this command to do upload: echo $(Github.TOKEN) | $(codeql) github upload-results --repository=$(Owner)/$(Repo) --ref=$(Build.SourceBranch) --commit=$(Build.SourceVersion) --sarif=$(sarifOutput) --github-auth-stdin --github-url=https://github.com. In result CodeQL tries to upload sarif file using endpoint https://api.github.com//repos/owner_name/repo_name/code-scanning/sarifs. There is redundant slash in the url so I get 404 response. Do you have idea what is wrong and how to fix?

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