Skip to content
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

Adding tools: hadolint kics #18

Merged
merged 4 commits into from
Oct 4, 2024
Merged

Adding tools: hadolint kics #18

merged 4 commits into from
Oct 4, 2024

Conversation

mattaereal
Copy link
Collaborator

No description provided.

Dockerfile Outdated
@@ -156,6 +184,21 @@ RUN wget -qO - https://aquasecurity.github.io/trivy-repo/deb/public.key | gpg --
RUN wget -qO - https://github.com/trufflesecurity/trufflehog/releases/download/v3.82.6/trufflehog_3.82.6_linux_$(dpkg --print-architecture).tar.gz | \
sudo tar -xzf - trufflehog -C /usr/local/bin

# Install hadolint
RUN wget -q https://github.com/hadolint/hadolint/releases/download/v2.12.0/hadolint-Linux-x86_64 \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd not fix packages to a specific/single arch. Not pretty, but a conditional over dpkg --print-architecture will do the trick.

Dockerfile Outdated

# Install dependency-check
RUN DEPCHECK_VERSION=$(curl -s https://jeremylong.github.io/DependencyCheck/current.txt) \
&& curl -Ls "https://github.com/jeremylong/DependencyCheck/releases/download/v${DEPCHECK_VERSION}/dependency-check-${DEPCHECK_VERSION}-release.zip" --output dependency-check.zip \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. I'd stick either with wget or curl, for the sake of standardization.
  2. I'd either download/unzip on the fly or delete dangling files after installing the tool

@mattaereal mattaereal merged commit 7bf334d into develop Oct 4, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants