Skip to content

Commit

Permalink
Fix passing branch name when sending sarif fail
Browse files Browse the repository at this point in the history
On a main branch. Before this fix, we'd have `"message": "ref 'refs/heads/$branch' not found in this repository",`
  • Loading branch information
wzieba committed Sep 13, 2024
1 parent e5b4558 commit 4b4e66d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/upload_sarif_to_github
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ elif [[ "$BUILDKITE_BRANCH" == "$BUILDKITE_PIPELINE_DEFAULT_BRANCH" ]]; then
--rawfile sarif "$sarif_base64_temp_file" \
'{
"commit_sha": $commit_sha,
"ref": ("refs/heads/$branch"),
"ref": ("refs/heads/"+$branch),
"sarif": $sarif
}')
else
Expand Down

0 comments on commit 4b4e66d

Please sign in to comment.