Commit Graph
3 Commits
Author SHA1 Message Date
Satoshi Qazi Muhammed 07facbdda2 fix(ci): pass workflow_run head_branch through env; read-only tokens
auto-merge.yml interpolated ${{ github.event.workflow_run.head_branch }} straight into a run script that holds a contents:write token. A fork pull request controls that branch name, so it could run commands with write access (CodeQL actions/code-injection/critical). It now arrives as an environment variable.

ci.yml, code-quality.yml and deploy.yml get permissions: contents: read; none of them writes through GITHUB_TOKEN.
2026-10-20 22:07:02 +04:00
Satoshi Qazi Muhammed b44b84f0a3 ci: let the master-to-main merge wait for every required check
The auto-merge job fires when CI finishes, but Code Quality, Security and
CodeQL can still be running then. Once main requires those checks, a direct
merge at that moment is refused and nothing would retry it. Try the merge,
and if the branch rules do not allow it yet, hand it to GitHub auto-merge.
2026-10-12 11:40:45 +04:00
Kurdistan Tech Ministry bc2ecb3a0e Replace force-push sync with PR-based auto-merge workflow 2026-03-02 14:22:23 +03:00