Repository navigation
Use a fictional package in the DependabotValidation.ps1 doc example - #125
Conversation
The comment-based help of ConvertFrom-DependabotCommitMessage showed a metadata block for Selenium.WebDriver 4.51.0. That was an arbitrary version when #122 added it, but #120 then pinned Selenium.WebDriver at exactly 4.51.0, so the DependencyVersionLiterals test added in #124 reports the example as a copied pin and fails the release build. The example only illustrates the format, so name a package and version that can never match the inventory instead of allow-listing the file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VaHXDCne5T9e998erwKnYW
There was a problem hiding this comment.
🟢 Approval recommended
The change is a verified, self-consistent documentation-only edit that uses a non-inventory package to resolve the guard failure without any functional impact.
0 open findings
What changed in this PR
This PR fixes a release-pipeline failure on main caused by the DependencyVersionLiterals guard. The comment-based help of ConvertFrom-DependabotCommitMessage in Build/DependabotValidation.ps1 contained a sample Dependabot metadata block naming Selenium.WebDriver at 4.51.0. Once Selenium.WebDriver was pinned to exactly 4.51.0, that harmless illustrative text matched the guard that flags any file naming a pinned component together with its exact pinned version. The fix swaps the example to a fictional Example.Package / 1.2.3, which can never match the real inventory, keeping the help's sole purpose (illustrating message format) intact.
I confirmed that Example.Package is not a pinned component in Build/Dependencies.psd1, so the example is now immune to future bumps, and that Tests/Unit/DependabotValidation.Tests.ps1 (which legitimately uses Selenium.WebDriver/4.51.0 as mock fixtures) remains covered by the test's allow list, so no further edits are required.
Changes:
- Replaced
Selenium.WebDriver/4.51.0withExample.Package/1.2.3in the help example block.
| File | Description |
|---|---|
| Build/DependabotValidation.ps1 | Updated the help example's sample dependency name/version to a fictional package that cannot collide with the pinned inventory. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
What broke
The release pipeline on main fails since #124 (run 38762281321):
Why
ConvertFrom-DependabotCommitMessage, namingSelenium.WebDriver4.51.0. At that time the pin was 4.47.0, so the version was arbitrary.What changed
Example.Package/1.2.3. It only illustrates the message format, so a name and version that can never match the inventory is the right fix.Build/DependabotValidation.ps1is deliberately not added to the allow list ofDependencyVersionLiterals.Tests.ps1. That would also stop the scan from catching a real copied version in that file's code.How it was verified
pwsh 7.4.6 / Pester 6.2.0 on Linux,
Tests/Unit/DependencyVersionLiterals.Tests.ps1andTests/Unit/DependabotValidation.Tests.ps1:Follow-up to consider
This guard reacts to merge order: any Dependabot bump can make existing harmless text match. To catch this in the PR instead of in the release pipeline, require branches to be up to date before merging, or use a merge queue on
main.🤖 Generated with Claude Code
https://claude.ai/code/session_01VaHXDCne5T9e998erwKnYW
Generated by Claude Code