summaryrefslogtreecommitdiff
path: root/docs/_include
diff options
context:
space:
mode:
authorYuriy Andamasov <yuriy@vyos.io>2026-05-14 01:16:59 +0300
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2026-05-13 22:23:03 +0000
commit0e8a2956327d4d0e7e08b6e356e0fdc8374c4e17 (patch)
treed99f212710c4f83f0c365e17e02b7ec250a3015f /docs/_include
parent1f0774ff8bf18c670e2668cb9de3dea4353e92f2 (diff)
downloadvyos-documentation-0e8a2956327d4d0e7e08b6e356e0fdc8374c4e17.tar.gz
vyos-documentation-0e8a2956327d4d0e7e08b6e356e0fdc8374c4e17.zip
ci(ai-validation): skip validation on Mergify-authored PRs
The upstream anthropics/claude-code-action rejects bot-initiated workflow runs with: Workflow initiated by non-human actor: mergify (type: Bot). Add bot to allowed_bots list or use '*' to allow all bots. This leaves a failing required check on every Mergify backport PR (#2025 today is the proximate symptom — circinus backport of #2016 is blocked from auto-merging by this). Per org policy, Mergify-authored PRs skip the bot-review flow entirely: the underlying change was already reviewed on the source PR. Re-running validation on the backport would also post duplicate findings. Fix: extend the existing `secrets-check` step (kept the id for backwards compat with the cascade of `if: steps.secrets-check.outputs.skip != 'true'` gates) to also short-circuit when `github.event.pull_request.user.login` equals `mergify[bot]`. Add a `skip_reason` output so the notify-on-PR step can distinguish bot-skip (silent) from missing-secrets (post a notice comment). Implementation notes: - PR author is bound through env: PR_AUTHOR (same pattern as secret bindings) so the template-expansion happens before bash sees the value as an already-quoted env variable. - Uses `printf '...%s\n' "$PR_AUTHOR"` for the notice line so the shell — not the YAML template engine — interpolates the author into the workflow log output. - Renamed step name to "Decide whether to skip validation" to reflect the broader scope; step id stays `secrets-check`. 🤖 Generated by [robots](https://vyos.io) (cherry picked from commit d75de0c24b971a2d87e817ac3cb8e09cb816aac0)
Diffstat (limited to 'docs/_include')
0 files changed, 0 insertions, 0 deletions