[BUG] Three workflows still point at the master branch, so CodeQL and the FAQ bot have been dead since the rename
- [x] I've checked docs and closed issues for possible solutions.
- [x] I can't find my issue in the FAQ.
Describe the bug
Three workflow files still name master. Since the rename to main they point at a branch that does not exist, so two of them never trigger and one fails on every run.
This is not the blob/master link nitpick from #4204. Those are web URLs and GitHub redirects them. git fetch and the Actions branches: filter resolve a ref by exact name under refs/heads and do not follow that redirect, which is why these three are broken while the links keep working.
git ls-remote --heads https://github.com/Textualize/rich.git returns a single head, refs/heads/main. There is no master.
.github/workflows/newissue.yml:13, ref: master
actions/checkout runs fetch ... +refs/heads/master*:refs/remotes/origin/master*, matches nothing, retries twice and exits 1. The five steps after it are skipped, so no FAQ suggestion is posted on a new issue. Last green run 2026-06-14, first failure 2026-06-16, 47 consecutive failures through 2026-10-18.
.github/workflows/codeql.yml:5 and :8, branches: [ 'master' ]
The last push run was 2026-04-12 and the last pull_request run 2026-05-23. Everything since is the Friday schedule. #4175 is the only pull request merged after the rename, and its checks are 17 build jobs and two codespell runs, with no CodeQL among them.
.github/workflows/readmechanged.yml:6, - master
It did not fire for #4175, which changed README.md on main. The only run in its retained history is 2025-12-22.
The workflows that declare no branch filter are unaffected, which is why comment.yml sits at 0 failures while newissue.yml is at 47: pythonpackage.yml, codespell.yml, comment.yml.
The fix
master to main on those four lines.
I wrote a checker rather than eyeballing it. It reads every workflow, collects each literal branch name from on.<event>.branches and from any with: ref:, skips globs and ${{ }} expressions, and resolves what is left against git ls-remote --heads. On current main it reports 4 of 4 references missing. With the four lines changed it reports 0. It never looks at a diff, so it locates the references on its own.
Two things I cannot settle from outside the repo:
- The checkout is the first failing step in
newissue.yml, so everything after it is skipped. I cannot tell whetherpip install FAQtoryandfaqtory suggeststill work once it gets that far. readmechanged.ymlneedssecrets.GHP_README_WORKFLOW. Once it starts running again it may fail on an expired token instead, which would be a separate fix.
Happy to send the four-line patch if you want it. Pull requests look restricted to collaborators right now (#4203), so you may prefer to apply it directly.
Found and written with AI assistance (Claude Opus 5). The run histories and the ls-remote output above are from live API calls.
I'd like to work on this — the fix looks straightforward: update the three workflow files to point at main instead of master.