Skip to content

Add CI check verifying commits come from NVIDIA-affiliated authors#49

Merged
sayalinvidia merged 1 commit into
mainfrom
add-author-verification
May 5, 2026
Merged

Add CI check verifying commits come from NVIDIA-affiliated authors#49
sayalinvidia merged 1 commit into
mainfrom
add-author-verification

Conversation

@mosheabr
Copy link
Copy Markdown
Collaborator

@mosheabr mosheabr commented May 5, 2026

The DCO check (#38) verifies every commit carries a Signed-off-by trailer but doesn't validate that the email matches an NVIDIA-affiliated address. Catalog content is published externally under NVIDIA's name — accepting commits from arbitrary personal/external email addresses creates IP-traceability gaps that are hard to clean up after the fact.

What it does

The check walks every non-merge commit between base and head, and fails if any commit's author OR committer email isn't @nvidia.com or @users.noreply.github.com (the github-noreply pattern covers NVIDIA-org members who hide their personal email).

The automated/sync-skills branch is exempt — same rationale as the DCO check, it's the bot mirror, not a contributor.

Recovery flow when the check fails

For NVIDIA employees committing from a personal account, the failure log surfaces a copy-paste recovery:

git config user.email <you>@nvidia.com
git rebase --exec 'git commit --amend --reset-author --no-edit' origin/main && git push --force-with-lease

For genuinely external contributions, the failure log directs the contributor to a CODEOWNER. We don't --admin override; external contributions need explicit OSRB review before merge.

Companion change

The catalog-pr-reviewer skill at gitlab-master.nvidia.com/moshea/catalog-pr-reviewer was updated in parallel with the same check inline (scripts/verify-pr.sh), so reviewers using the skill see the violation locally before opening the PR rather than only after CI fails.

Tested

The DCO check (#38) verifies every commit carries a Signed-off-by
trailer but doesn't validate that the author email matches an
NVIDIA-affiliated address. Catalog content is published externally
under NVIDIA's name — accepting commits from arbitrary personal/
external email addresses creates IP-traceability gaps that are
hard to clean up after the fact.

PR #47 surfaced this gap concretely: an external contributor opened
a catalog onboarding PR with commits authored from gmail.com and
eduquencher.com addresses. Detection happened during human review
only; this workflow makes it an automated gate.

The check walks every non-merge commit between base and head, and
fails if any commit's author OR committer email isn't @nvidia.com or
@users.noreply.github.com (github-noreply covers NVIDIA-org members
who hide their personal email).

The automated/sync-skills branch is exempt — same rationale as the
DCO check, it's the bot mirror, not a contributor.

Companion change: catalog-pr-reviewer skill updated with the same
check inline so reviewers see the violation locally before opening
the PR rather than after CI fails.

Signed-off-by: Moshe Abramovitch <moshea@nvidia.com>
@mosheabr mosheabr requested a review from sayalinvidia as a code owner May 5, 2026 19:14
@sayalinvidia
Copy link
Copy Markdown
Collaborator

lgtm!

@sayalinvidia sayalinvidia merged commit aab7b98 into main May 5, 2026
2 checks passed
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