-
Notifications
You must be signed in to change notification settings - Fork 424
DL3055
Moritz Röhrich edited this page Mar 23, 2021
·
3 revisions
This rule is activated by specifying a label-schema including a label of type hash
. This can be done via command line
$ hadolint --require-label refno:hash Dockerfile
or in the config file:
label-schema:
refno: hash
LABEL refno="abc-not-a-git-hash-def"
LABEL refno="0ef48a1"
Some standards require a source control identifier be specified for the software within an image.
This rule does not expand variables. It requires the value of a label to be a literal git hash, though both short (7-digit) and long (40-digit) hashes are ok.