Policy templates for open source license detection
Endor Labs provides the following policy templates for detecting open source license usage. See Finding Policies for details on how to create policies from policy templates.License name matching
License policies evaluate the SPDX identifiers that Endor Labs detects for each dependency. Endor Labs maps common declared license names to SPDX identifiers. For example, it mapsexpat to MIT, asl 2.0 to Apache-2.0, ruby license to Ruby, isc license to ISC, cc0 to CC0-1.0, and unlicense to Unlicense. It also detects MPL-1.1, and it matches mit and mpl only as whole words.
To assign a license type, Endor Labs classifies the full identifier first. If that identifier has no license type, Endor Labs strips the -only or -or-later suffix and classifies the base identifier. For example, AGPL-3.0-or-later gets the license type of AGPL-3.0.