Skip to content

Remove stale brakeman gem dependency - #3406

Merged
saghoshprogress merged 3 commits into
mainfrom
remove-brakeman-dep
Jul 17, 2026
Merged

Remove stale brakeman gem dependency#3406
saghoshprogress merged 3 commits into
mainfrom
remove-brakeman-dep

Conversation

@RoyShravani

Copy link
Copy Markdown
Contributor

Summary

Removes the stale brakeman gem entry from Gemfile and Gemfile.lock.

Why

  • The brakeman 5.4.1 entry in group :development was never actively used
  • The CI workflow (.github/workflows/brakeman-analysis.yml) independently installs its own pinned version (5.0.4) via gem install and does not reference the Gemfile at all
  • The gem is excluded from the omnibus package build via bundle config set without 'development doc', so it was never distributed
  • The 5.4.1 entry was being picked up by BlackDuck/dependency scans, raising licensing questions around the Brakeman Public Use License unnecessarily

What is unaffected

  • The brakeman-analysis.yml security scan workflow continues to run unchanged — it installs Brakeman 5.0.4 independently on GitHub-hosted runners
  • No application code, tests, or CI pipelines reference the Gemfile entry

Changes

  • src/supermarket/Gemfile — removed gem "brakeman" from group :development
  • src/supermarket/Gemfile.lock — removed corresponding brakeman (5.4.1) entries

Brakeman 5.4.1 was declared in group :development but was never
actively used. The CI security scanning workflow (brakeman-analysis.yml)
independently installs its own pinned version (5.0.4) via gem install
and does not use the Gemfile entry at all.

Removing to:
- Eliminate ambiguity around the Brakeman Public Use License
- Prevent accidental local installation by developers
- Remove BlackDuck/dependency scan false positive for 5.4.1

The brakeman-analysis.yml workflow is unaffected and continues to
run Brakeman 5.0.4 independently on GitHub-hosted runners.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: RoyShravani <shravani.roy@progress.com>
@RoyShravani
RoyShravani requested review from a team as code owners July 14, 2026 14:13
@RoyShravani RoyShravani added the ai-assisted Any changes that is generated by AI should have this label label Jul 14, 2026
Brakeman is fully replaced by CodeQL (org-level default setup) which
already runs Analyze (ruby) on every PR. Removing eliminates the
Brakeman Public Use License commercial use question entirely.

Files removed:
- .github/workflows/brakeman-analysis.yml
- src/supermarket/config/brakeman.ignore

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: RoyShravani <shravani.roy@progress.com>
@RoyShravani RoyShravani self-assigned this Jul 17, 2026
Ubuntu 16.04 reached End of Life in April 2021. Its GLIBC 2.23 is
incompatible with ffi 1.17.4+ which requires GLIBC 2.27+, causing
build failures.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: RoyShravani <shravani.roy@progress.com>
@RoyShravani

Copy link
Copy Markdown
Contributor Author

@saghoshprogress
saghoshprogress merged commit 8201631 into main Jul 17, 2026
44 of 45 checks passed
@saghoshprogress
saghoshprogress deleted the remove-brakeman-dep branch July 17, 2026 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-assisted Any changes that is generated by AI should have this label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants