Repository navigation
Update for new data #382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update for new data #382
Changes from all commits
1834a9d
06e12d3
a674a1b
f662898
d080ef4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,8 @@ | ||
| FROM docker.io/node:12-buster-slim as builder | ||
| FROM docker.io/node:12-buster-slim AS builder | ||
| LABEL author="Devin Matte <matted@csh.rit.edu>" | ||
|
|
||
| WORKDIR /usr/src/schedule | ||
| COPY package.json ./ | ||
| COPY package.json package-lock.json ./ | ||
|
|
||
| RUN npm install | ||
|
|
||
|
|
@@ -11,10 +11,10 @@ COPY assets ./assets | |
| RUN npm run-script build | ||
|
|
||
|
|
||
| FROM docker.io/php:7.3-apache | ||
| FROM docker.io/php:8.4-apache | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔴 High: Missing user instruction
Specify a non-root user in the Dockerfile so containers do not run as root by default, which reduces the blast radius of a compromise and prevents easy privilege escalation.
|
||
| LABEL author="Devin Matte <matted@csh.rit.edu>" | ||
|
|
||
| RUN echo "deb-src http://archive.debian.org/debian buster main" >> /etc/apt/sources.list | ||
| RUN echo "deb-src http://deb.debian.org/debian trixie main" >> /etc/apt/sources.list | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟠 Medium: Avoid HTTPDockerfile `RUN` commands must not fetch resources over unencrypted HTTP, because clear-text downloads can be intercepted or modified in transit. This increases the risk of supply-chain compromise or execution of malicio... (...read more)Dockerfile This rule inspects When switching to HTTPS, also verify artifact integrity (for example, with checksums or signatures) or use trusted TLS-protected registries to further reduce tampering risk. Secure example using HTTPS and checksum verification: RUN curl -fsSL https://example.com/artifact.tar.gz -o /tmp/artifact.tar.gz && \
echo "3b7d6f... /tmp/artifact.tar.gz" | sha256sum -c -Helpful? 👍/👎 |
||
|
|
||
| RUN apt-get -yq update && \ | ||
| apt-get -yq install \ | ||
|
|
@@ -36,6 +36,7 @@ RUN apt-get -yq update && \ | |
| libxml2-dev \ | ||
| unzip \ | ||
| wget \ | ||
| fonts-roboto \ | ||
| --no-install-recommends | ||
|
|
||
| RUN apt-get -yq build-dep imagemagick | ||
|
|
@@ -44,10 +45,9 @@ RUN wget https://github.com/ImageMagick/ImageMagick6/archive/6.9.11-22.tar.gz && | |
| tar -xzvf 6.9.11-22.tar.gz && \ | ||
| cd ImageMagick6-6.9.11-22 && \ | ||
| ./configure && \ | ||
| make && \ | ||
| make -j16 && \ | ||
| make install && \ | ||
| ldconfig /usr/local/lib && \ | ||
| make check | ||
| ldconfig /usr/local/lib | ||
|
|
||
| RUN docker-php-ext-install mysqli && \ | ||
| yes '' | pecl install imagick && docker-php-ext-enable imagick | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 Low: Healthcheck instruction missing
Containers should expose an explicit `HEALTHCHECK` so runtimes and orchestrators can detect unhealthy applications and automatically restart or replace failing containers. Without a health check, internal failures may go... (...read more)
Containers should expose an explicit
HEALTHCHECKso runtimes and orchestrators can detect unhealthy applications and automatically restart or replace failing containers. Without a health check, internal failures may go unnoticed and lead to reduced availability and slower incident recovery.This rule verifies each Dockerfile build stage (each
FROM) and requires aHEALTHCHECKinstruction to be present in the stage's instruction set. Stages missing aHEALTHCHECKwill be flagged.Implement the
HEALTHCHECKusing theCMDform and sensible options (for example,--interval,--timeout,--start-period,--retries) so the probe is lightweight and accurately reflects service health.Secure example:
Helpful? 👍/👎


🚩 Report as false positive. Flags the rule for review to improve detection accuracy.