This commit is contained in:
Nicolas CARPi 2026-02-05 06:32:43 +00:00 committed by GitHub
commit e907d03b69
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -94,11 +94,11 @@ fi
#
InsertSection "${SECTION_BASICS}"
MAINTAINER=$(grep -E -i "*MAINTAINER" ${AUDIT_FILE} | sed 's/=/ /g' | cut -d'"' -f 2)
if [ -z "${MAINTAINER}" ]; then
ReportWarning "dockerfile" "No maintainer found. Unclear who created this file."
AUTHORS=$(grep -E -i "^[[:space:]]*LABEL[[:space:]]+org\.opencontainers\.image\.authors.*" ${AUDIT_FILE} | sed 's/=/ /g' | cut -d'"' -f 2)
if [ -z "${AUTHORS}" ]; then
ReportWarning "dockerfile" "No authors label found (org.opencontainers.image.authors). Unclear who created this file."
else
Display --indent 2 --text "Maintainer" --result "${MAINTAINER}"
Display --indent 2 --text "Authors" --result "${AUTHORS}"
fi
ENTRYPOINT=$(grep "^ENTRYPOINT" ${AUDIT_FILE} | cut -d' ' -f2 )