Commit 449be1b
committed
fix(gemspec): ship only runtime files in packaged gem
The gemspec used `git ls-files` to populate `s.files`, which pulled every
tracked file — Gemfile, Gemfile.lock, examples/, spec/, .github/,
.devcontainer/, etc. — into the published gem. Downstream vulnerability
scanners (AWS ECR, Snyk, Trivy, Grype) parse those bundled Gemfile.lock
and example-app Gemfiles and report findings against dependencies that
are never loaded at runtime, producing large volumes of false positives
for gem consumers.
Switch to an explicit allow-list covering only the files needed to load
and run the gem: lib/**/*.rb, LICENSE, README.md, CHANGELOG.md,
auth0.gemspec, and .version. Drop s.test_files (deprecated by RubyGems)
and s.executables (no tracked bin/ entries exist). Package contents drop
from ~385 files to 51.
Refs #7201 parent 771e5b4 commit 449be1b
1 file changed
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
| 14 | + | |
17 | 15 | | |
18 | 16 | | |
19 | 17 | | |
| |||
0 commit comments