-
Notifications
You must be signed in to change notification settings - Fork 441
DL3054
Moritz Röhrich edited this page Mar 23, 2021
·
1 revision
This rule is activated by specifying a label-schema including a label of the type spdx
label-schema:
license: spdx
or via command line:
# hadolint --require-label license:spdx Dockerfile
LABEL license="Thou shall not copyright infringe"
LABEL license="BSD-3-Clause"
This rule allows users to ensure a label contains a literal SPDX license identifier. This may be desirable as part of the release process, to ensure images released are properly licensed and the license can be detected by automated tools.
This rule does not expand variables. The value of the label must be a literal SPDX license identifier. A list of valid license identifiers can be found here.