Skip to content

fix(ci): run the DCO check only on pull requests from forks - #66

Merged
simonvanlierde merged 1 commit into
mainfrom
fix/dco-fork-only
Oct 24, 2026
Merged

simonvanlierde merged 1 commit into
mainfrom
fix/dco-fork-only

Conversation

@simonvanlierde

Copy link
Copy Markdown
Contributor

The dco check is meant to skip maintainers, but it ran on my own pull request here (#64) and failed. The skip read the author's role from the pull request event, and since my membership in CMLPlatform is private, that role didn't come through as a member.

  • The job now runs only on pull requests from a fork (head.repo.full_name != github.repository). Pushing a branch to this repo already needs write access, so every outside contribution still gets checked, and branches from maintainers and the dependency bots skip it.
  • CONTRIBUTING.md says the same, instead of naming roles.

Tests: this pull request comes from a branch here, so its own DCO job should show as skipped. The fork case runs on the next outside pull request.

The skip keyed on the author's role in the pull request event, and the
check still ran on a maintainer's own pull request in an organization
repo where their membership is private. Pushing a branch to the
repository needs write access, so checking forks covers every outside
contribution without trusting that role.
@codspeed

codspeed Bot commented Oct 24, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

1 warning

⚠️ 2 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

✅ 10 untouched benchmarks


Comparing fix/dco-fork-only (bccb354) with main (2ae2815)

Open in CodSpeed

@codecov

codecov Bot commented Oct 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@simonvanlierde
simonvanlierde merged commit 8a53101 into main Oct 24, 2026
11 checks passed
@simonvanlierde
simonvanlierde deleted the fix/dco-fork-only branch October 24, 2026 23:13
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