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

Renaming licensing directory to follow OSSF best practices #1433

Closed
wants to merge 1 commit into from

Conversation

timmiesmith
Copy link
Contributor

@timmiesmith timmiesmith commented Mar 4, 2024

A review of oneDPL using the OSSF scorecard showed that the oneDPL licenses are not in a standard location that makes it easily discoverable. This PR resolves that issue by renaming licensing to LICENSES.
See https://github.com/ossf/scorecard/blob/main/docs/checks.md#license for details.

Copy link
Contributor

Choose a reason for hiding this comment

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

Should we rename this file to Apache-2.0.txt or Apache-2.0-LICENSE.txt to go along with this blurb in the OSSF scorecard details?

"Files in a LICENSES directory are typically named as their SPDX license identifier followed by an appropriate file extension, as described in the REUSE Specification"

It seems like we need it to claim the 1 point for FSF license.
Is it appropriate to do that with the "LLVM Exceptions to the Apache 2.0 License" section?

Copy link
Contributor

Choose a reason for hiding this comment

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

Reading more, it looks like the right name for it is:
"Apache-2.0 WITH LLVM-exception.txt"

Although I hate introducing a name with spaces in the filename...

Its possible "Apache-2.0-WITH-LLVM-exception.txt" is also valid, but I can't really find the rules here.

Copy link
Contributor

Choose a reason for hiding this comment

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

It seems like we may only score 6/10 with this change since 3 points are based on the license being in top-level directory. Its unclear if the alternative of the LICENSES directory being in the top level directory satisfies that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch on the score. A 6/10 isn't sufficient, and use of the LICENSES directory won't satisfy the top-level requirement. I'll close this PR and rework the licenses to what's required.

dnmokhov
dnmokhov previously approved these changes Apr 2, 2024
@dnmokhov dnmokhov dismissed their stale review April 2, 2024 16:49

Dismissed.

@timmiesmith timmiesmith closed this Apr 2, 2024
@timmiesmith timmiesmith deleted the rename_licensing branch April 16, 2024 12:57
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.

None yet

3 participants