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

ci: add check to enforce presence of license identifier #7

Merged
merged 5 commits into from
Nov 24, 2024

Conversation

ingomueller-net
Copy link
Collaborator

No description provided.

@ingomueller-net
Copy link
Collaborator Author

The Github action doesn't work out of the box but I submitted enarx/spdx#24 and enarx/spdx#25 that should make it work.

@ingomueller-net ingomueller-net changed the title Add CI check to enforce presence of license identifier. ci: add check to enforce presence of license identifier Oct 28, 2024
Copy link
Collaborator

@jpienaar jpienaar left a comment

Choose a reason for hiding this comment

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

Approved, but assuming we may have to delay until those other commits are accepted?

@ingomueller-net
Copy link
Collaborator Author

Yeah, exactly.

@jpienaar
Copy link
Collaborator

I see it worked and flagged some :)

That file doesn't seem to be particularly important to specify the
license for but our CI check complains about it and I guess it cannot
harm either.

Signed-off-by: Ingo Müller <[email protected]>
This is necessary because the action expects the license identifier to
be a space-separated list of strings via its main parameter mechanism,
which breaks with our license identifier, which contains strings.
Fortunately, there is a fallback mechanism via environment variables
that allows to specify the list of identifiers as a JSON array.

Signed-off-by: Ingo Müller <[email protected]>
@ingomueller-net ingomueller-net merged commit d2fbc62 into main Nov 24, 2024
6 checks passed
@ingomueller-net ingomueller-net deleted the gh-action-license branch November 24, 2024 14:22
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.

2 participants