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

change make:nag to try and install cfn-nag without sudo first #378

Merged
merged 2 commits into from Oct 24, 2018

Conversation

BennyHarv3
Copy link
Contributor

Closes #362.

@BennyHarv3 BennyHarv3 self-assigned this Oct 24, 2018
@BennyHarv3 BennyHarv3 requested a review from cplee October 24, 2018 16:50
Makefile Outdated
@@ -61,7 +61,7 @@ gen:

nag:
@echo "=== cfn_nag ==="
@gem list -i cfn-nag --silent || sudo gem install cfn-nag
@gem list -i cfn-nag --silent || gem install cfn-nag || sudo gem install cfn-nag
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add the --user-install flag to gem install - that should always work and not require sudo.

Also, if it fails to install that way I'd prefer be notified and take action myself instead of assuming install with sudo.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Copy link
Contributor

@cplee cplee left a comment

Choose a reason for hiding this comment

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

lgtm

@cplee cplee merged commit 7618547 into develop Oct 24, 2018
@BennyHarv3 BennyHarv3 deleted the ruby_gem_install branch October 24, 2018 17:40
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.

None yet

3 participants