# Breakman not in Gemfile

**URL:** <https://discuss.rubyonrails.org/t/breakman-not-in-gemfile/89245>\
**Category:** rubyonrails-talk\
**Created:** [May 19, 2025, 2:22pm UTC](https://discuss.rubyonrails.org/t/breakman-not-in-gemfile/89245 "2025-05-19T14:22:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![whitemwco](https://sea2.discourse-cdn.com/rubyonrails/user_avatar/discuss.rubyonrails.org/whitemwco/32/9080_2.png) [@whitemwco](https://discuss.rubyonrails.org/u/whitemwco)\
**Post date:** [May 19, 2025, 2:22pm UTC](https://discuss.rubyonrails.org/t/breakman-not-in-gemfile/89245/1 "2025-05-19T14:22:44Z")

</div>

I have the following error when pushing my project to github. github ran: bin/brakeman --no-pager and received message Brakeman 7.0.0 is not the latest version 7.0.2

This causes a bot error so I investigated it and became confused.

First I didn’t know about breakman or what it does so I investigated that and ran the same command and got the same error. I found that I should update to 7.0.2 but then found that breakman is in my bin directory but not in my Gemfile. Should I put it in my Gemfile and update the current breakman. My research shows it gets installed automatically so why is it not already in my Gemfile? I looked at the Ruby gems and its not there either. Is it somewhere I don’t know about? Just trying to understand before making changes. Should I update breakman some other way than a Gemfile process?

---

<div class="post-metadata">

**Author:** ![viniciusalonso](https://sea2.discourse-cdn.com/rubyonrails/user_avatar/discuss.rubyonrails.org/viniciusalonso/32/9412_2.png) [@viniciusalonso](https://discuss.rubyonrails.org/u/viniciusalonso)\
**Post date:** [May 19, 2025, 4:01pm UTC](https://discuss.rubyonrails.org/t/breakman-not-in-gemfile/89245/2 "2025-05-19T16:01:19Z")

</div>

The brakeman should be in your Gemfile.lock. You can fix it with `bundle update brakeman`.

---

<div class="post-metadata">

**Author:** ![whitemwco](https://sea2.discourse-cdn.com/rubyonrails/user_avatar/discuss.rubyonrails.org/whitemwco/32/9080_2.png) [@whitemwco](https://discuss.rubyonrails.org/u/whitemwco)\
**Post date:** [May 19, 2025, 10:00pm UTC](https://discuss.rubyonrails.org/t/breakman-not-in-gemfile/89245/3 "2025-05-19T22:00:53Z")

</div>

Thanks for looking at this, there is a lot to know here. I spent a career in Software engineering starting in 1981 and it has always been impossible to learn enough! That was the answer, I really didn’t know the difference between Gemfile and Gemfile.lock functionality so I researched after your reply.
