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

False positive on the use of SUDO #23

Closed
ghost opened this issue Feb 15, 2017 · 2 comments · Fixed by #29
Closed

False positive on the use of SUDO #23

ghost opened this issue Feb 15, 2017 · 2 comments · Fixed by #29

Comments

@ghost
Copy link

ghost commented Feb 15, 2017

Issue details

I have a Dockerfile containing the following line:
RUN echo "jenkins ALL=(ALL) ALL" >> etc/sudoers
which to my knowledge is not running a command with sudo

if i run dockerlint Dockefile, i get the following message

WARN: sudo(8) usage found on line 35 which is discouraged

@ghost ghost changed the title report False positive on the use of SUDO False positive on the use of SUDO Feb 15, 2017
@reverbc
Copy link
Contributor

reverbc commented Mar 23, 2017

Same symptom but (slightly) different approach here:
RUN yum install -y sudo

This line gets the same warning message and should also be a false positive.

@iamramin
Copy link

iamramin commented Jun 3, 2017

I've just got this false positive with the sudo package listed on a separate line like this:

RUN yum install -y \
    sudo

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 a pull request may close this issue.

2 participants