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

brakeman:fix - search for Gemfile's before start analysis #877

Merged
merged 1 commit into from
Dec 21, 2021

Conversation

matheusalcantarazup
Copy link
Contributor

@matheusalcantarazup matheusalcantarazup commented Dec 15, 2021

If there was no Gemfile file in the current directory, Brakeman would
generate an error stating that the project to be analyzed was not a Ruby
on Rails project.

This commit fix this issue by looking for a directory path that contains
a Gemfile filename and them using this path as a work dir to execute
Brakeman.

Signed-off-by: Matheus Alcantara matheus.alcantara@zup.com.br

- What I did

- How to verify it

- Description for the changelog

@matheusalcantarazup
Copy link
Contributor Author

Still in draft until #878 is merged, since some code improvements was made there.

@matheusalcantarazup matheusalcantarazup changed the title brakeman search for gemfile brakeman:fix - search for Gemfile's before start analysis Dec 15, 2021
@matheusalcantarazup matheusalcantarazup force-pushed the brakeman-search-for-gemfile branch 4 times, most recently from 0adf5d5 to 99e6a7f Compare December 16, 2021 13:39
If there was no `Gemfile` file in the current directory, Brakeman would
generate an error stating that the project to be analyzed was not a Ruby
on Rails project.

This commit fix this issue by looking for a directory path that contains
a `Gemfile` filename and them using this path as a work dir to execute
Brakeman.

Signed-off-by: Matheus Alcantara <matheus.alcantara@zup.com.br>
@matheusalcantarazup matheusalcantarazup force-pushed the brakeman-search-for-gemfile branch from 99e6a7f to f65205c Compare December 17, 2021 16:18
@matheusalcantarazup matheusalcantarazup marked this pull request as ready for review December 17, 2021 16:18
@matheusalcantarazup matheusalcantarazup merged commit 5b23d5d into main Dec 21, 2021
@matheusalcantarazup matheusalcantarazup deleted the brakeman-search-for-gemfile branch December 21, 2021 14:54
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.

3 participants