Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 6

GITHUB_REF and GITHUB_SHA no longer work

Solved! Go to Solution.

I was working on finishing my workflow, when suddenly I started seeing nonsensical errors. It turns out GITHUB_REF and GITHUB_SHA are no longer getting set!

 

Running cmd /c "set" on Windows gives:

[...]
GITHUB_BASE_REF=
GITHUB_EVENT_NAME=push
GITHUB_EVENT_PATH=d:\a\_temp\_github_workflow\event.json
GITHUB_HEAD_REF=
GITHUB_REF=
GITHUB_REPOSITORY=nulano/Pillow
GITHUB_SHA=
[...]

This broke about an hour ago.

 

Also see this issue: https://github.com/actions/checkout/issues/49

5 Replies
Solution
GitHub Staff
Message 2 of 6

Re: GITHUB_REF and GITHUB_SHA no longer work

Thanks for letting us know, and sorry for the inconvenience.  We're working on this now.

Copilot Lvl 3
Message 3 of 6

Re: GITHUB_REF and GITHUB_SHA no longer work

Can you post an update here once this starts working again?

GitHub Staff
Message 4 of 6

Re: GITHUB_REF and GITHUB_SHA no longer work

This should have been fixed now @svenstaro  🙇‍♂️

Copilot Lvl 3
Message 5 of 6

Re: GITHUB_REF and GITHUB_SHA no longer work

Thanks. Just tested, it's indeed working.
Copilot Lvl 3
Message 6 of 6

Re: GITHUB_REF and GITHUB_SHA no longer work

Are you sure this is working? I didn't get any value for GITHUB_REPOSITORY today.