Skip to content

ci: run CI on pull_request events (cover fork PRs)#80

Merged
birme merged 1 commit into
masterfrom
ci/run-ci-on-pull-requests
Jul 14, 2026
Merged

ci: run CI on pull_request events (cover fork PRs)#80
birme merged 1 commit into
masterfrom
ci/run-ci-on-pull-requests

Conversation

@birme

@birme birme commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Problem

The Node CI workflow triggers on on: [push] only. A push event for a PR opened from a fork fires in the contributor's fork, not in this repo — and with no pull_request trigger, Eyevinn/node-srt never runs CI for fork PRs. The result is that external contributions show "no checks reported" (e.g. #77, #78), while a PR from an in-repo branch (#76) gets CI purely because its branch lives here. Every external contributor's build currently goes unverified — on a native addon where the build is the risky part.

Fix

Add a pull_request trigger so the build/test matrix runs for PRs, including those from forks:

on:
  push:
  pull_request:

pull_request (not pull_request_target) checks out the PR's code with a read-only GITHUB_TOKEN and no access to secrets, which is the safe default for a build/test job on untrusted fork code. No job steps change.

Scope

CI-config only — no runtime, native, or build-script changes.


Opened by the node-srt community triage bot (CI-config fix). Once CI is green here, this is a Tier A change that can be merged.

@birme birme merged commit 12c9a1d into master Jul 14, 2026
6 checks passed
@birme birme deleted the ci/run-ci-on-pull-requests branch July 14, 2026 09:41
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.

1 participant