Skip to content

Report e2e-* checks on fork + Dependabot PRs#224

Open
lelia wants to merge 1 commit into
mainfrom
lelia/dependabot-pr-merge-fix
Open

Report e2e-* checks on fork + Dependabot PRs#224
lelia wants to merge 1 commit into
mainfrom
lelia/dependabot-pr-merge-fix

Conversation

@lelia
Copy link
Copy Markdown
Contributor

@lelia lelia commented Jun 3, 2026

Summary

The e2e job is skipped on PRs that lack access to repository secrets - namely fork PRs and Dependabot PRs. Because the job is skipped via a job-level if, its matrix never expands, so the e2e-* check contexts are never created. Branch protection is then stuck waiting on those required checks indefinitely (Expected — Waiting for status to be reported), permanently blocking PR merges.

Fix

Add an e2e-bypass job whose if is the exact negation of the e2e job's run condition. It emits the same e2e-* check names (scan, sarif, reachability, gitlab, json, pypi) with a passing status for fork/Dependabot PRs, satisfying branch protection without running the real tests (which require secrets).

The two jobs are mutually exclusive and exhaustive: every PR runs exactly one of them, never both, never neither. Push and workflow_dispatch events continue to run the real e2e suite.

No branch-protection rule changes required.

The e2e job is skipped on PRs that can't access repository secrets
(forks and Dependabot). Because it's skipped via a job-level `if`, its
matrix never expands, so the required e2e-* check contexts are never
created and branch protection waits on them indefinitely, blocking merge.

Add an e2e-bypass job whose `if` is the exact negation of the e2e job's
run condition. It emits the same e2e-* check names with a passing status
for fork/Dependabot PRs, satisfying branch protection without running the
real tests. The two jobs are mutually exclusive and exhaustive: every PR
runs exactly one.

Signed-off-by: lelia <2418071+lelia@users.noreply.github.com>
@lelia lelia requested a review from a team as a code owner June 3, 2026 03:06
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 3, 2026

🚀 Preview package published!

Install with:

pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple socketsecurity==2.4.0.dev5

Docker image: socketdev/cli:pr-224

@lelia lelia changed the title ci: report e2e-* checks on fork and Dependabot PRs Report e2e-* checks on fork + Dependabot PRs Jun 3, 2026
@lelia lelia added bug Something isn't working dependencies Pull requests that update a dependency file labels Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant