Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ hasInstallCommandWithoutFlag(command) = c {
}

hasYesFlag(command) {
regex.match("\\b(microdnf|dnf *install (-y|-[\\D]{1}y|-y[\\D]{1}|-yes|--assumeyes))\\b [\\w\\W]*", command)
regex.match("\\b((tdnf|microdnf|dnf) *install (-y|-[\\D]{1}y|-y[\\D]{1}|-yes|--assumeyes))\\b [\\w\\W]*", command)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
ARG BASE_CONTAINER_REGISTRY

# Base the installer on the Azure CLI image as we require the tool
# to download the psa-check from the UniversalPackage feed.
# Additionally, the script to retrieve the Kubernetes schemas
# requires Python (yaml & requests) which are included by
# default in the Azure CLI image.
# hadolint ignore=DL3006
FROM ${BASE_CONTAINER_REGISTRY:-mcr.microsoft.com}/azure-cli AS installer

ARG AZP_URL
ARG AZP_TOKEN

ARG DCP_INSTALLATION=infra-test

ARG HADOLINT_VERSION=2.12.0
ARG KUSTOMIZE_VERSION=5.5.0
ARG KUBECONFORM_VERSION=0.6.7
ARG FLYWAY_VERSION=11.1.0

RUN tdnf install -y \
jq \
tar \
libicu \
python3-requests \
python3-yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM fedora:27
RUN microdnf install \
openssl-libs-1:1.1.1k-6.el8_5.x86_64 \
zlib-1.2.11-18.el8_5.x86_64 \
&& microdnf clean all
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
ARG BASE_CONTAINER_REGISTRY

# Base the installer on the Azure CLI image as we require the tool
# to download the psa-check from the UniversalPackage feed.
# Additionally, the script to retrieve the Kubernetes schemas
# requires Python (yaml & requests) which are included by
# default in the Azure CLI image.
# hadolint ignore=DL3006
FROM ${BASE_CONTAINER_REGISTRY:-mcr.microsoft.com}/azure-cli AS installer

ARG AZP_URL
ARG AZP_TOKEN

ARG DCP_INSTALLATION=infra-test

ARG HADOLINT_VERSION=2.12.0
ARG KUSTOMIZE_VERSION=5.5.0
ARG KUBECONFORM_VERSION=0.6.7
ARG FLYWAY_VERSION=11.1.0

RUN tdnf install \
jq \
tar \
libicu \
python3-requests \
python3-yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,17 @@
"severity": "LOW",
"line": 10,
"fileName": "positive2.dockerfile"
},
{
"queryName": "Missing Flag From Dnf Install",
"severity": "LOW",
"line": 2,
"fileName": "positive3.dockerfile"
},
{
"queryName": "Missing Flag From Dnf Install",
"severity": "LOW",
"line": 21,
"fileName": "positive4.dockerfile"
}
]
Loading