Steps to replicate the issue (include links if applicable):
- Go to https://github.com/wikimedia/Wikibase/actions/workflows/filterCommits.yml (the “Filter New Wikibase Commits” workflow)
What happens?:
Everything is red.
fatal: detected dubious ownership in repository at '/github/workspace' To add an exception for this directory, call: git config --global --add safe.directory /github/workspace fatal: Command '['git', 'show-ref']' returned non-zero exit status 128.
What should have happened instead?:
Everything is green and does the job it is supposed to do.
Background:
This GitHub workflow was created in context of T289040: Migrate DataModel, DataModelServices, DataModelSerialization, WBInternalSerialization to Wikibase.git. It is "extracting out" commits that relate to standalone packages in the Wikibase monorepo and pushing them to read-only repositories for that standalone component.
Source for this workflow: https://github.com/wikimedia/Wikibase/blob/master/.github/workflows/filterCommits.yml
It might have been broken by a change to Git itself: https://github.com/git/git/commit/8959555cee7ec045958f9b6dd62e541affb7e7d9
(Thank You to @Tarrow for helping me to figure out what might be going on here.)
Acceptance Criteria:
- make that workflow work again
- double check if any commits were missed while it was broken and if so, push them to the respective places
- add some kind of email-notification or something, so that we notice when these jobs break again

