Skip to content

🔥 ci: drop guards a reviewer already sees - #63

Merged
gaborbernat merged 2 commits into
mainfrom
drop-diff-visible-guards
Nov 10, 2026
Merged

gaborbernat merged 2 commits into
mainfrom
drop-diff-visible-guards

Conversation

@gaborbernat

Copy link
Copy Markdown
Member

Two checks only caught changes a reviewer already sees in the pull request diff, so they go. 🔥 Callers lose two error messages and nothing else: what the checks blocked still needs a merged, reviewed change to take effect.

  • Writer jobs no longer refuse untrusted caller events. The six writer workflows failed their first step when called from pull_request, pull_request_target, workflow_run, issue_comment or merge_group. Calling a writer from one of those means adding that trigger to the caller's workflow, which is a reviewed change. A fork's pull request already gets a read-only token and no secrets, so it can neither mint the App token nor push.
  • validate-news no longer fails a pull request that deletes pylock.toml while Nab is still configured. The deletion is in the diff; the check now skips the lock comparison when there is no lock, as it already did when Nab was not configured.

The release lock comparison against pyproject.toml, the cutoff exception expiry, the release patch allowlist and the PyPI artifact check stay: each catches something that is not visible in the diff. The threat model, troubleshooting page and per-workflow docs drop the refusal and the removed-lock error.

@gaborbernat gaborbernat added the enhancement New feature or request label Nov 10, 2026
@gaborbernat
gaborbernat force-pushed the drop-diff-visible-guards branch from 13e7fd6 to 1d0ee80 Compare November 10, 2026 01:56
@gaborbernat
gaborbernat marked this pull request as ready for review November 10, 2026 01:57
@gaborbernat
gaborbernat merged commit d8f2962 into main Nov 10, 2026
12 checks passed
@gaborbernat
gaborbernat deleted the drop-diff-visible-guards branch November 10, 2026 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant