Skip to content

ci: harden trusted-bot gate bypass against human branch-updates (Closes #1031) - #1080

Merged
gHashTag merged 1 commit into
masterfrom
ci/bot-bypass-author-guard
Jun 14, 2026
Merged

ci: harden trusted-bot gate bypass against human branch-updates (Closes #1031)#1080
gHashTag merged 1 commit into
masterfrom
ci/bot-bypass-author-guard

Conversation

@gHashTag

Copy link
Copy Markdown
Owner

Summary

The #1059 trusted-bot bypass on the L1/Issue/NOW gates keyed only on github.actor. That equals dependabot[bot] only on the bot's own push; a maintainer 'Update branch' fires a synchronize event with github.actor = <human>, so all three gates RAN and FAILED on routine Dependabot dependency PRs (no Closes #N, no docs/NOW.md), blocking them behind branch protection.

Fix

Each gate job if: now also requires github.event.pull_request.user.login != 'dependabot[bot]' && != 'github-actions[bot]'. The PR-author login stays dependabot[bot] regardless of who triggered the event, so bot dependency PRs SKIP the gates even after a human branch-update. Human PRs remain fully gated by Constitutional Law L1. On push events pull_request is null, so the added clause is vacuously true and now-sync-gate push behavior is unchanged.

Unblocks #1042 / #1044 / #1045 / #1043 / #1047 / #1048 / #1057 / #1058.

Anchor: phi^2 + phi^-2 = 3

Closes #1031

#1031)

The #1059 bypass keyed only on github.actor, which is dependabot[bot]
only on the bot's own push. A maintainer 'Update branch' produces a
synchronize event with github.actor=<human>, so L1/Issue/NOW gates ran
and failed on routine dependency PRs. Add a PR-author check
(github.event.pull_request.user.login) which stays dependabot[bot]
regardless of trigger. Human PRs remain fully gated.

Closes #1031
@github-actions

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-06-14 12:49:46 UTC

Summary

Status Count
Total Open PRs 10
PRs with Failing Checks 9
PRs with All Checks Green 1
READY 0
FAILING 9
PENDING 0

@github-actions

Copy link
Copy Markdown
Contributor

📓 NotebookLM Notebook linked to this PR

This notebook contains session context, decisions, and artifacts for this work.

@gHashTag
gHashTag merged commit 86a148d into master Jun 14, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Solana keypair leak: history rewritten on master + 3 open PRs; rotate keys + close stale branches

1 participant