Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions include/helper_audit_dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down