Description
#1572 has the same error message, but is for a more interesting case.
Here, I used github's editor to create a commit, it automatically created a patch-1
. That triggered a workflow:
https://github.com/jsoref/pdns/actions/runs/4486688011
Fetching the repository
/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +46056980cc77a5a76310b821f7d851913efcb51d:refs/remotes/origin/patch-1
...
ref 'refs/heads/patch-1' not found in this repository
As soon as I created the commit, I visited https://github.com/jsoref/pdns/branches and renamed the branch.
It isn't unreasonable for a flow like this to happen (I wasn't trying to break my own workflow, it's just a flow I take regularly).
Expected results: Ideally the action should be able to find the branch from the point in time when the workflow started and properly resolve things instead of from when the action itself starts running. There's nothing wrong w/ a workflow wanting to have a sarif report about a branch even if the branch is no longer...