Skip to content

verify-action-build: pass cleanly on removal-only PRs#820

Merged
potiuk merged 1 commit intomainfrom
verify-allow-removal-only-prs
May 7, 2026
Merged

verify-action-build: pass cleanly on removal-only PRs#820
potiuk merged 1 commit intomainfrom
verify-allow-removal-only-prs

Conversation

@potiuk
Copy link
Copy Markdown
Member

@potiuk potiuk commented May 7, 2026

Summary

  • The --from-pr branch was failing on removal-only PRs (e.g. allowlist: remove browser-actions/setup-geckodriver and /setup-firefox #818) because there are no added action references to verify — extract_action_refs_from_diff correctly returns an empty list, but the CLI treated that as a fatal error.
  • Now distinguishes the two empty-result cases: diff-fetch failure still errors out, while a successfully-fetched diff with no added refs passes with a friendly "nothing to verify" message.

Why

Removal PRs (and any PR that touches actions.yml / approved_patterns.yml without adding a new pinned SHA) shouldn't fail the verify check — there's literally nothing to verify. PR #818 hit this because it only removes entries.

Test plan

🤖 Generated with Claude Code

The --from-pr branch fails for removal-only PRs (e.g. #818) because
extract_action_refs_from_diff correctly returns no refs when a PR only
removes entries — there's nothing new to verify. The CLI treated that
as a fatal error.

Distinguish the two empty-result cases: a diff-fetch failure still
exits 1, while a successfully-fetched diff with no added refs exits 0
with a "nothing to verify" message.
@potiuk potiuk merged commit 4405fb5 into main May 7, 2026
8 checks passed
@potiuk potiuk deleted the verify-allow-removal-only-prs branch May 7, 2026 21:54
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.

2 participants