Unexpected TagBot failures
Sometime between "last week" and "3 days ago", some TagBot workflows seem to have started unexpectedly failing, e.g. https://github.com/OpenThermochronology/Thermochron.jl/actions/workflows/TagBot.yml (and possibly earlier at https://github.com/JuliaTesting/ReTest.jl/actions/workflows/TagBot.yml)
The top-level error states "TagBot experienced an unexpected internal failure", while opening the logs yields something along the lines of
! [remote rejected] v0.3.4 -> v0.3.4 (refusing to allow a GitHub App to create or update workflow `.github/workflows/CI.yml` without `workflows` permission)
error: failed to push some refs to 'https://github.com/JuliaTesting/ReTest.jl'
Error: TagBot experienced an unexpected internal failure
Traceback (most recent call last):
File "/root/tagbot/action/__main__.py", line 96, in <module>
repo.create_release(version, sha)
File "/root/tagbot/action/repo.py", line 606, in create_release
self._git.create_tag(version_tag, sha, log)
File "/root/tagbot/action/git.py", line 107, in create_tag
self.command("push", "origin", version)
File "/root/tagbot/action/git.py", line 71, in command
raise Abort(f"Git command '{cmd}' failed")
tagbot.action.Abort: Git command 'git -C /tmp/tagbot_repo_eb9jf3l7 push origin v0.3.4' failed
Response (200): {
"status": "Submitted error report"
}
Traceback (most recent call last):
File "/root/tagbot/action/__main__.py", line 96, in <module>
repo.create_release(version, sha)
File "/root/tagbot/action/repo.py", line 606, in create_release
self._git.create_tag(version_tag, sha, log)
File "/root/tagbot/action/git.py", line 107, in create_tag
self.command("push", "origin", version)
File "/root/tagbot/action/git.py", line 71, in command
raise Abort(f"Git command '{cmd}' failed")
tagbot.action.Abort: Git command 'git -C /tmp/tagbot_repo_eb9jf3l7 push origin v0.3.4' failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/root/tagbot/action/__main__.py", line 99, in <module>
repo.handle_error(e)
File "/root/tagbot/action/repo.py", line 646, in handle_error
raise Abort("Cannot continue due to internal failure")
tagbot.action.Abort: Cannot continue due to internal failure
However, attempting to manually add a workflows line to the TagBot.yml does not seem to help: https://github.com/OpenThermochronology/Thermochron.jl/actions/runs/13423646562/workflow
I was able to fix this by setting up an SSH Deploy Key as outlined here
Ah, that's good to know... The most recent attempt just succeeded without any change in the configuration on my end, so perhaps this has been fixed