License
The following rule type is available for checking for license files in a repository.
stacklok/license
- Verifies that there's a license file of a given type present in the repository
Verifies that there's a license file of a given type present in the repository.
The license rule type ensures that a license file is present in the repository and its license type complies with the configured license type in your profile.
For more information, see the GitHub documentation.
Entity
repository
Type
stacklok/license
Rule Parameters
The stacklok/license
rule supports the following parameters:
- None
Rule Definition Options
The stacklok/license
rule has the following options:
license_filename (string)
- The license filename to look for.- Example:
LICENSE
,LICENSE.txt
,LICENSE.md
, etc.
- Example:
license_type (string)
- The license type to look for inlicense_filename
.- Example:
MIT
,Apache
, etc. See SPDX License List for a list of license types. Leave""
to only check for the presence of the file.
- Example: