You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The REST API of GitHub displays incorrect license information for the MasterCard Terraform provider GitHub repository. Despite the repository displaying the correct license, i.e., Apache License 2.0, in the LICENSE file, the API shows it as "other". The improper configuration or formatting of the file might be causing this error.
Steps to Reproduce
Fetch the repository's data through GitHub's REST API using the following:
The license object returns "other" for key, name and spdx_id properties, indicating that the license information is unrecognized or incorrectly configured.
The incorrect presentation of license information by the REST API can mislead and confuse those relying on this data. Particularly, those requiring license compliance information.
Possible Solution
Ensure the correct SPDX license identifier and that the LICENSE file's format allows GitHub's correct identification and parsing. Update the LICENSE file using a official Apache Licence 2.0 Template to get easily detected by the GitHub Licence parser. Find a offical template here https://github.com/apache/.github/blob/main/LICENSE.
The text was updated successfully, but these errors were encountered:
Issue Summary
The REST API of GitHub displays incorrect license information for the MasterCard Terraform provider GitHub repository. Despite the repository displaying the correct license, i.e., Apache License 2.0, in the LICENSE file, the API shows it as "other". The improper configuration or formatting of the file might be causing this error.
Steps to Reproduce
Fetch the repository's data through GitHub's REST API using the following:
The response shows the license object's key, name and spdx_id as "other".
Expected Result
The license object should present the correct details in alignment to the repository's LICENSE file:
Actual Result
The license object returns "other" for key, name and spdx_id properties, indicating that the license information is unrecognized or incorrectly configured.
Impact
The incorrect presentation of license information by the REST API can mislead and confuse those relying on this data. Particularly, those requiring license compliance information.
Possible Solution
Ensure the correct SPDX license identifier and that the LICENSE file's format allows GitHub's correct identification and parsing. Update the LICENSE file using a official Apache Licence 2.0 Template to get easily detected by the GitHub Licence parser. Find a offical template here https://github.com/apache/.github/blob/main/LICENSE.
The text was updated successfully, but these errors were encountered: