Skip to content

Commit

Permalink
Return back to the original checkout SHA1
Browse files Browse the repository at this point in the history
The upload-sarif action dislikes the change done by our rebase:

| No longer on merge commit, rewriting ref from refs/pull/3401/merge to refs/pull/3401/head.
| ...
| Uploading results
| Warning: commit not found
| Error: commit not found
  • Loading branch information
praiskup committed Sep 6, 2024
1 parent da1fcfe commit fd9564d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions container/cmd
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ if test "$GITHUB_EVENT_NAME" = 'pull_request'; then
for subdir in $INPUT_SUBDIRECTORIES; do
analyze_subdir "$subdir"
done

# Return back to the previous git-sha1
git checkout "$GITHUB_SHA"
else
touch "$rootdir/output.sarif.err"
fi
Expand Down

0 comments on commit fd9564d

Please sign in to comment.