Breakman not in Gemfile

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?

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

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.