Skip to content

Exclude Gemfiles from packaged gem - #217

Open
mi-wada wants to merge 1 commit into
CGA1123:masterfrom
mi-wada:exclude-gemfiles-from-package
Open

Exclude Gemfiles from packaged gem#217
mi-wada wants to merge 1 commit into
CGA1123:masterfrom
mi-wada:exclude-gemfiles-from-package

Conversation

@mi-wada

@mi-wada mi-wada commented Jul 21, 2026

Copy link
Copy Markdown

Thank you for maintaining this gem.

This excludes Gemfile* from spec.files. The files remain tracked for development reproducibility, but are no longer included in the published gem.

Amazon Inspector recursively scans lockfiles in container images. In our case, the bundled lockfile produced the following finding even though this version was not part of the resolved dependency graph:

{
  "vulnerabilityId": "CVE-2024-43398",
  "package": {
    "name": "rexml",
    "version": "3.2.8",
    "packageManager": "RUBY",
    "filePath": "/usr/local/bundle/ruby/3.4.0/gems/slack-ruby-block-kit-0.26.0/Gemfile.lock",
    "fixedInVersion": "3.3.6"
  }
}

Verified with RSpec, RuboCop, and by unpacking the built gem.

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.

1 participant