chore(ci): validate chocolatey package metadata at build time#1297
Open
benjaminrigaud-gg wants to merge 1 commit into
Open
chore(ci): validate chocolatey package metadata at build time#1297benjaminrigaud-gg wants to merge 1 commit into
benjaminrigaud-gg wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1297 +/- ##
=======================================
Coverage 93.51% 93.51%
=======================================
Files 189 189
Lines 11081 11081
=======================================
Hits 10362 10362
Misses 719 719
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Install chocolatey-community-validation.extension and run a throwaway `choco pack` so the windows build surfaces the CCR metadata errors that push.chocolatey.org masks as an opaque 409 (chocolatey/home#399). Isolated to a temp outdir and the extension is uninstalled before the real pack, so it is non-fatal and cannot break the build.
7261778 to
aa69f2a
Compare
Contributor
Author
|
All good 🤔 https://github.com/GitGuardian/ggshield/actions/runs/27687386842/job/81889359933#step:12:254 |
clement-tourriere
approved these changes
Jun 17, 2026
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.
What
In the windows package build (
windows_build_chocolatey_package), installchocolatey-community-validation.extensionand run a throwawaychoco packso the build surfaces any CCR package-metadata violations.Why
ggshield has failed to publish to Chocolatey since 1.50.1:
push.chocolatey.orgreturns only an opaque409 Conflict(even with--debug --verbose), and the versions never enter moderation. In chocolatey/home#399, a Chocolatey maintainer (pauby) suggested the Community Validation Extension, which runs CCR's validator rules locally atchoco packtime and reports the real metadata error.This wires that into CI (which builds the choco package on every push), so the validation output lands in the
Build packages (windows-2022)log — no release or production push needed. It also permanently guards future releases against the same class of error.Safety
It's isolated and non-fatal:
choco packwrites to a throwaway$(mktemp -d)and is|| true,Once we read the surfaced error and fix the nuspec, a follow-up can promote this to a hard gate. Refs chocolatey/home#399.