Skip to content

Commit

Permalink
Merge pull request #14 from theredguild/tool-semgrep-and-reorder
Browse files Browse the repository at this point in the history
Reordering tools, and added semgrep
  • Loading branch information
mattaereal authored Oct 3, 2024
2 parents de0e4be + a98d173 commit 3c12a1e
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,14 @@ RUN . $ASDF_DIR/asdf.sh \
&& asdf install golang latest \
&& asdf global golang latest

# Set GOBIN to /usr/local/bin for Go binaries
ENV GOBIN=/usr/local/bin
ENV PATH="${GOBIN}:${PATH}"

# Install gitxray
RUN . $HOME/.asdf/asdf.sh \
go install github.com/kulkansecurity/gitxray@latest

# # Install pnpm using npm installed via asdf Node.js
RUN npm install -g pnpm
ENV PNPM_HOME="/home/${USERNAME}/.local/share/pnpm"
Expand All @@ -100,31 +108,26 @@ RUN pnpm install -g node-version-audit \
better-npm-audit \
installed-check

# Set GOBIN to /usr/local/bin for Go binaries
ENV GOBIN=/usr/local/bin
ENV PATH="${GOBIN}:${PATH}"
# Install detect-secrets
RUN pipx install detect-secrets

# Install gitxray
RUN . $HOME/.asdf/asdf.sh \
go install github.com/kulkansecurity/gitxray@latest
RUN pipx install gitxray

# Install semgrep
RUN pipx install semgrep

# Install git-secrets
RUN git clone https://github.com/awslabs/git-secrets.git git-secrets \
&& cd git-secrets \
&& sudo make install \
&& rm -rf secrets

# Install detect-secrets
RUN pipx install detect-secrets

# Install gitleaks
RUN git clone https://github.com/gitleaks/gitleaks.git gitleaks \
&& cd gitleaks \
&& make build

# Install gitxray
RUN pipx install gitxray

# Install gh-fake-analyzer
RUN git clone https://github.com/shortdoom/gh-fake-analyzer.git \
&& cd gh-fake-analyzer \
Expand All @@ -134,7 +137,6 @@ RUN git clone https://github.com/shortdoom/gh-fake-analyzer.git \
&& pip install -r requirements.txt \
&& exit


# Create a script to run the gh-fake-analyzer
USER root

Expand Down

0 comments on commit 3c12a1e

Please sign in to comment.