• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dennisdoomen / packageguard / 33245800566
81%

Build:
DEFAULT BRANCH: main
Ran 29 Aug 2026 09:43AM UTC
Jobs 1
Files 83
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 Aug 2026 09:34AM UTC coverage: 80.745% (+0.02%) from 80.725%
33245800566

push

github

web-flow
Model --report-risk's optional path as a real Spectre.Console.Cli option (#247)

* Model --report-risk's optional path as a real Spectre.Console.Cli option

AnalyzeCommandSettings.ReportRisk used to be a plain bool, with the
optional path value bound entirely outside Spectre: Program.cs
pre-scanned raw argv via ReportRiskArgumentNormalizer.Normalize(args)
before Spectre parsed anything, stashing the result in the
PACKAGEGUARD_REPORT_RISK_PATH_OVERRIDE environment variable for
GetReportRiskPath() to read back. That made the path invisible to
--help and to anything introspecting AnalyzeCommandSettings.

Spectre.Console.Cli has first-class support for this shape via
FlagValue<T> plus an optional value token ([PATH]) in the option
template. ReportRiskOption is now a FlagValue<string>, bound directly
by Spectre; ReportRisk and GetReportRiskPath() are thin wrappers over
IsSet/Value. This removes the argv pre-scan, the env var, and
ReportRiskArgumentNormalizer entirely, and makes --report-risk [PATH]
show up correctly in --help.

Fixes https://github.com/dennisdoomen/packageguard/issues/245

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* Address github-advanced-security InspectCode findings on PR #247

- Capture CapturingCommand.LastSettings into a local before asserting
  and dereferencing it, so the possible-null-reference warning on a
  repeated static-property read is resolved.
- Mark CapturingCommand [UsedImplicitly] since it's only referenced as
  a generic type argument (CommandApp<CapturingCommand>) and
  instantiated by Spectre.Console.Cli via reflection, which InspectCode
  can't see.
- Drop the redundant nullable annotation on the local in
  GetReportRiskPath(); ReportRiskOption.Value is not nullable here.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>

1944 of 2686 branches covered (72.38%)

Branch coverage included in aggregate %.

3 of 4 new or added lines in 2 files covered. (75.0%)

6208 of 7410 relevant lines covered (83.78%)

1710.35 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
0.0
0.0% Src/PackageGuard/Program.cs
Jobs
ID Job ID Ran Files Coverage
1 33245800566.1 29 Aug 2026 09:43AM UTC 83
80.74
GitHub Action Run
Source Files on build 33245800566
  • Tree
  • List 83
  • Changed 58
  • Source Changed 2
  • Coverage Changed 58
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #33245800566
  • 3b98aa32 on github
  • Prev Build on main (#32662905250)
  • Next Build on main (#33247754007)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc