Repository navigation
Update vulnerable dev dependencies and restrict CI token permissions - #145
Conversation
Bump rack, addressable, net-imap, json, erb, yard and mail to patched versions. Use a conservative, minor-only update so json stays on 2.x and rubocop does not change. These gems are dev and test dependencies only; the gemspec does not depend on them. Set the workflow token to read-only contents, because the CI job only checks out the code and runs tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues block the dependency updates and CI token permission restrictions.
No open issues 🎉
What changed in this PR
Updates development and test dependencies to address reported vulnerabilities and restricts CI token permissions, without changing the published gem’s dependencies.
Changes:
- Updates seven gems in
Gemfile.lock, keeping JSON on 2.x and RuboCop unchanged. - Sets workflow-level token permissions to
contents: read.
| File | Description |
|---|---|
Gemfile.lock |
Updates addressable, erb, json, mail, net-imap, rack, and yard. |
.github/workflows/main.yml |
Restricts the CI token to read-only repository contents access. |
Review effort: Balanced
The Appraisal gemfiles are not committed, so appraisal rspec resolves the newest gem versions and never uses Gemfile.lock. Without this step, a lockfile change first runs the specs in the release workflow. It also runs the specs with mail 2.9, which no Appraisal covers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Motivation
Close the open Dependabot and code-scanning alerts. All affected gems are dev and test dependencies only. The gemspec does not depend on them, so the published gem does not change.
Changes
permissions: contents: readin the CI workflow, because the job only checks out the code and runs testsbundle exec rspecin CI before the Appraisal runs. The Appraisal gemfiles are not committed, so they resolve the newest gem versions, and no PR ran the specs againstGemfile.lock(or mail 2.9) beforeHow to test
No QA needed — non-user-facing dev dependency and CI changes only
Summary by CodeRabbit