Skip to content

request: Add Reusable copyright boilerplate check CI action #1069

Closed

Description

@jaiakash

Why we need it?

Every Kubeflow repo needs the same Apache 2.0 header check, and right now each one vendors its own copy of boilerplate.py from this repo. That copy immediately drifts — each repo runs its own ruff/lint config over it, so the "downloaded from kubeflow/testing @ " comment stops being verifiable the moment the file lands.

Creating this issue to add a reusable composite action (.github/actions/verify-boilerplate) that runs the boilerplate check against a repo's changed files, so repos can call it directly instead of vendoring and maintaining a divergent script.

Already vendored / being vendored in:

Source of truth: hack/boilerplate/boilerplate.py in this repo.

Requirement

  • Composite action wrapping hack/boilerplate/boilerplate.py, with the script sourced
    from this repo so callers never vendor it.
  • Input for the base ref to diff against, defaulting to the PR base branch
    (github.base_ref), so only changed/new files are checked.
  • Input for the boilerplate template directory, for repos that keep custom templates.
  • Sets up Python itself so callers don't each add a setup-python step.
  • Non-zero exit with the existing remediation output on failure.

Activity

  1. jaiakash commented on Aug 25, 2026

    @jaiakash
    MemberAuthor

    /help-wanted
    /good-first-issue

  2. google-oss-prow commented on Aug 25, 2026

    @google-oss-prow

    @jaiakash:
    This request has been marked as suitable for new contributors.

    Please ensure the request meets the requirements listed here.

    If this request no longer meets these requirements, the label can be removed
    by commenting with the /remove-good-first-issue command.

    Details

    In response to this:

    /help-wanted
    /good-first-issue

    Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

  3. Prachi01Yadav commented on Aug 26, 2026

    @Prachi01Yadav
    Contributor

    Hey, will open a PR shortly.

  4. Prachi01Yadav commented on Aug 26, 2026

    @Prachi01Yadav
    Contributor

    /assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions