Skip to content

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

Merged
matheusalcantarazup merged 1 commit into
mainfrom
brakeman-search-for-gemfile
Dec 21, 2021
Merged

brakeman:fix - search for Gemfile's before start analysis #877
matheusalcantarazup merged 1 commit into
mainfrom
brakeman-search-for-gemfile

Conversation

@matheusalcantarazup

@matheusalcantarazup matheusalcantarazup commented Dec 15, 2021

Copy link
Copy Markdown
Contributor

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 [email protected]

- What I did

- How to verify it

- Description for the changelog

@matheusalcantarazup

Copy link
Copy Markdown
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 <[email protected]>
@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