Loss of automatic Git config for macOS jobs?

I and many colleagues are suddenly (past ~36 hours?) seeing GHA failure for jobs that were previously working fine.

Have macOS jobs suddenly lost their automatic Git config? Here’s a typical error seen in the log:

*** Please tell me who you are.


  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.

Omit --global to set the identity only in this repository.

Error: System command 'git' failed, exit status: 128, stdout & stderr were printed

And yes all of these workflows exist primarily to render some documentation and commit+push to gh-pages.


I’ve experienced the same thing. A bit of a hacky workaround I found to get unstuck is to add the following before the relevant push until the mac runner has it’s config restored:

- name: Git setup
    run: |
      git config --local user.email "actions@github.com"
      git config --local user.name "GitHub Actions"