Skip to content
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

Add check-files-licence-headers job #89

Merged
merged 3 commits into from
Jan 27, 2022
Merged

Conversation

Jonas-Sander
Copy link
Collaborator

@Jonas-Sander Jonas-Sander commented Jan 27, 2022

The check-files-licence-headers job checks that all files contain the appropriate licence header:

# Copyright (c) 2022 Sharezone UG (haftungsbeschränkt)
# Licensed under the EUPL-1.2-or-later.
#
# You may obtain a copy of the Licence at:
# https://joinup.ec.europa.eu/software/page/eupl
#
# SPDX-License-Identifier: EUPL-1.2

which has its template definied under header_template.txt.

If one wants to automatically add the licence headers then the command

addlicense -check -c "Sharezone UG (haftungsbeschränkt)" -f header_template.txt .

can be run.
The tool has to be installed via go install github.com/google/addlicense@latest first.

See: https://github.com/google/addlicense

Closes #25

Copy link
Member

@nilsreichardt nilsreichardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Jonas-Sander Jonas-Sander merged commit 4bf8261 into main Jan 27, 2022
@Jonas-Sander Jonas-Sander deleted the licence-header-check-ci-step branch January 27, 2022 16:33
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.

Add CI enforced license header check if we open source
2 participants