Skip to content

Add workflow to check that files have copyright & license statements #867

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mhucka
Copy link
Collaborator

@mhucka mhucka commented Aug 16, 2025

This workflow uses addlicense to check that files added in a PR contain the standard copyright and license statements. The workflow can be used as a required CI check.

The addlicense program doesn't provide an easy way to tell it which files to ignore. A feature of this workflow is that it overcomes this limitation by reading file paths to ignore from the file .github/workflows/config/license-checker-ignore.txt. This makes it easy to update the list of files to be ignored without having to edit the workflow itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant