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

Adds Infer as a new Security Test #542

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

thepabloaguilar
Copy link

Description

Adds Infer as a new Security Test

Proposed Changes

There are no breaking changes here!

Testing

Infer will work for Java projects, in order to test you need to setup huskyCI locally and run make run-client-linux using some Java repo!

Closes #511

api/util/util.go Outdated Show resolved Hide resolved
api/securitytest/infer.go Outdated Show resolved Hide resolved
api/config.yaml Outdated Show resolved Hide resolved
api/util/util.go Outdated Show resolved Hide resolved
api/util/util_test.go Outdated Show resolved Hide resolved
api/util/util_test.go Outdated Show resolved Hide resolved
Copy link
Contributor

@spimpaov spimpaov left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution, @thepabloaguilar! I made a few comments on your code 😊

mkdir -p ~/.ssh &&
echo '%GIT_PRIVATE_SSH_KEY%' > ~/.ssh/huskyci_id_rsa &&
chmod 600 ~/.ssh/huskyci_id_rsa &&
echo "IdentityFile ~/.ssh/huskyci_id_rsa" >> /etc/ssh/ssh_config &&
Copy link
Contributor

Choose a reason for hiding this comment

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

Hey @thepabloaguilar ! I tried to run an analysis using infer and received a few errors. The /etc/ssh directory does not exist in this image, so I was getting an error when trying to write to a file inside it. Could you check if there is any command missing here?

# mkdir the man/man1 directory due to Debian bug #863199
RUN apt-get update \
&& mkdir -p /usr/share/man/man1 \
&& apt-get install --yes --no-install-recommends \
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the git installation is missing here. While debugging errors inside the container I couldn't clone the repository because git wasn't available.

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.

Add Infer as a new securityTest
3 participants