Skip to content

Add CI check for ASFv2 license header in the files #385

Closed

Description

@martin-g

#377 made me realise that we do not have a CI check for ASFv2 license header and many files miss it.

A possible solution is https://github.com/korandoru/hawkeye
Apache DataFusion uses it with this config file: https://github.com/apache/datafusion/blob/main/licenserc.toml

Activity

  1. Kriskras99 commented on Jan 2, 2026

    @Kriskras99
    Contributor

    Seems like a good idea. Github CI:

    jobs:
      license-header-check:
        runs-on: ubuntu-latest
        name: Check License Header
        steps:
          - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8  # v6.0.1
          - name: Install HawkEye
          # This CI job is bound by installation time, use `--profile dev` to speed it up
            run: cargo install hawkeye --version 6.2.0 --locked --profile dev
          - name: Run license header check
            run: ci/scripts/license_header.sh
    

    Might be useful to use something like cargo binstall to not have to compile it

  2. martin-g commented on Jan 2, 2026

    @martin-g
    MemberAuthor

    They provide a Github Action too:

    - name: Check License Header
      uses: korandoru/hawkeye@v6
    
  3. Kriskras99 commented on Jan 2, 2026

    @Kriskras99
    Contributor

    That's even easier! Let's do that

  4. martin-g commented on Jan 2, 2026

    @martin-g
    MemberAuthor

    The tricky part with third-party Github actions is that they need to be allowed for https://github.com/apache/ projects.
    I have memories that the Infra team added a selfserve tool but I don't see it at https://selfserve.apache.org/
    If the CI check fails that the action is not allowed then either ask Infra team how to enable it or use bininstall.

  5. self-assigned this
    on Jan 5, 2026
  6. added 8 commits that reference this issue on Jan 5, 2026
    f2a99b1
    ce1b1be
    aeda1f2
    4b6f7aa
    d4b04c9
    c92da34
    5d04547
    fe132e5
  7. added a commit that references this issue on Jan 6, 2026
    649aed6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions