Skip to content

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

Closed
mhucka wants to merge 2 commits intoquantumlib:masterfrom
mhucka:mh-add-license-checker
Closed

Add workflow to check that files have copyright & license statements#867
mhucka wants to merge 2 commits intoquantumlib:masterfrom
mhucka:mh-add-license-checker

Conversation

@mhucka
Copy link
Copy Markdown
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.

@github-actions github-actions Bot added the size: M 50< lines changed <250 label Aug 16, 2025
@mhucka
Copy link
Copy Markdown
Collaborator Author

mhucka commented Sep 24, 2025

Will do this differently.

@mhucka mhucka closed this Sep 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: M 50< lines changed <250

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant