Add automation to handle bin/bundler-audit errors

Open
#1,826 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
28/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
github-actions, ruby
Domain
devops

Research direction

Start with the CI step that runs bin/bundler-audit and the advisory output format quoted in the issue, which includes a 'Solution: update to' line naming the gem and version. The issue asks for automation that opens a PR bumping the vulnerable gem, but it leaves the approach open. Done means agreeing on that design with maintainers, then a working workflow that proposes the bump without manual steps.

Written by the indexing model from the issue text.

Description

infrastructure nice to have

Our CI runs bin/bundler-audit which alerts if there are any Ruby dependencies which have known security issues which need to be addressed.

Since this runs in CI it's a great way of alerting us to potential security issues, but it makes it look like the triggering PR is to blame. For example, https://github.com/concerto/concerto/pull/1816 is a perfectly reasonable PR to update Devise... but it's failing CI with an error about an unrelated package:

Run bin/bundler-audit
Download ruby-advisory-db ...
Cloning into '/home/runner/.local/share/ruby-advisory-db'...
ruby-advisory-db:
  advisories:	1115 advisories
  last updated:	2026-05-12 13:08:20 -0700
  commit:	dad0a89a4cbf06b517921d12449ce4eb1be2b56f
Name: addressable
Version: 2.8.9
CVE: CVE-2026-35611
GHSA: GHSA-h27x-rffw-24p4
Criticality: High
URL: https://github.com/sporkmonger/addressable/security/advisories/GHSA-h27x-rffw-24p4
Title: Addressable has a Regular Expression Denial of Service in Addressable templates
Solution: update to '>= 2.9.0'

Vulnerabilities found!
Error: Process completed with exit code 1.

Resolving this today requires manual work to update the offending package (in the above case, addressable). Ideally, some automation could magically open a PR with that change so we could easily approve it and unblock all the other PRs.

Dominant language
Ruby
Stars
485
Forks
178
Avg merge
1d 14h
Merged PRs (30d)
29

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from concerto/concerto

All issues in concerto/concerto

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.