Currently, only push and pull_request events work with the cache service, other events will fail server authorization with an error like "No scopes with read permission were found on the request."
We should check the event (from env variable GITHUB_EVENT_NAME) and provide a more helpful error message when the event is not supported.