Skip to content

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

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