I’d love to have one or both of those available as environment variables in my worker. That way, I can include it as a header and when tracking exceptions (e.g. to Bugsnag or New Relic).
As it is, I can use a custom environment variable, but I have to remember to update it every time I publish a script.
I would recommend just using your own, if you wanted to find which version a hash is it would be a pain. Going through all the audit log entries doesn’t sound fun.
I’d recommend instead adding the commit hash into the wrangler.toml when you deploy in your CI/CD pipeline. That way you have an identifiable thing you can use to find the version of the Worker.