Bump dependencies to latest within license constraints#37
Merged
Conversation
- MailKit 4.13.0 -> 4.16.0 (MIT) - Microsoft.Identity.Web 3.11.0 -> 4.9.0 (MIT) - Microsoft.NET.Test.Sdk 17.* -> 18.* (MIT) - coverlet.msbuild 6.* -> 10.0.1 (MIT) - System.Linq.Dynamic.Core 1.6.6 -> 1.7.2 (Apache-2.0) - SciSharp.TensorFlow.Redist 2.3.1 -> 2.16.0 (Apache-2.0) Held back MediatR 13+/14 due to license change (Apache-2.0 -> RPL-1.5). Microsoft.Extensions.* / EntityFrameworkCore wildcards left untouched.
scripts/Bump-Deps.ps1 scans every csproj, queries nuget.org for the
latest stable version of each PackageReference, and rewrites the Version
attribute when:
- the version is not a wildcard
- the latest version's SPDX license is in the allowlist (default: MIT, Apache-2.0)
- the latest version's SPDX matches the currently pinned version's SPDX
(catches relicensing like MediatR 13+ Apache-2.0 -> RPL-1.5)
.github/workflows/bump-deps.yml runs the script on a weekly schedule and
on manual dispatch, verifies the build, then opens a PR against master
via peter-evans/create-pull-request. Workflow_dispatch supports a
dry-run input and a custom license allowlist.
Some packages relicense without publishing an SPDX expression on NuGet (e.g. MediatR 13+ went Apache-2.0 -> RPL-1.5, but neither 12.x nor 14.x publishes a licenseExpression). The license-change rule cannot detect this. Add an explicit -Ignore hashtable mapping package name to exclusive version ceiling; the script clamps the latest candidate to the highest stable version below that ceiling, or skips entirely if the ceiling value is $null. Default ignore entry blocks MediatR >= 13.0.0.
0316212 to
1b68f6f
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #37 +/- ##
==========================================
+ Coverage 54.74% 56.44% +1.70%
==========================================
Files 101 101
Lines 3405 2877 -528
Branches 294 294
==========================================
- Hits 1864 1624 -240
+ Misses 1464 1172 -292
- Partials 77 81 +4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
3 tasks
nieprzecietny
added a commit
that referenced
this pull request
May 20, 2026
PR #37's squash merge landed an earlier draft of this workflow. The inline ${{ inputs.allowed-licenses || ''MIT,Apache-2.0'' }} expression inside a multi-line PowerShell run: block fails GitHub Actions YAML parsing with: (Line: 39, Col: 14): Unexpected symbol: '0'''. Located at position 43 within expression: inputs.allowed-licenses || ''MIT,Apache-2.0'' Fix: - Hoist defaults to job-level env: so PowerShell reads plain $env:VAR without any ${{ }} interpolation inside the script body. - Use github.event.inputs.* (defined for workflow_dispatch, null on cron) so the || fallback works. - Switch the Verify build / Create pull request guards to env.DRY_RUN. - Rename $args -> $scriptArgs (PowerShell auto-variable collision).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
*wildcards on Microsoft.* references.Bumped (license-verified, no drift)
Held back / flagged
8.*wildcard) — BSD-3-Clause, not MIT/Apache. Pre-existing; not touched.Test plan
dotnet restore TailoredApps.Shared.slndotnet build TailoredApps.Shared.sln --no-restore— 0 errors🤖 Generated with Claude Code