Repository navigation
chore: deterministic packages, package metadata, CI checks, Dependabot and security policy - #24
Merged
BenjaminAbt merged 3 commits intoNov 24, 2026
Conversation
- Set ContinuousIntegrationBuild in GitHub Actions. The embedded PDBs of the
published packages contained paths of the build agent
(/home/runner/work/...); they are now mapped to /_/.
- Fix the product name of the core package ("HTTP Client Agents") and the
descriptions of both packages. Client Hints do not identify bots.
- Use single-word tags: NuGet split "User Agent" into "User" and "Agent".
- Add Copyright and PackageReleaseNotes.
- Run dotnet format --verify-no-changes in every build. - Pin dotnet/nbgv to v0.5.2 instead of the master branch. - Update actions/download-artifact from v4 to v8, which runs on Node.js 24. The packages are downloaded by name, which v5 to v8 did not change. - Add Dependabot for NuGet and GitHub Actions with grouped updates. Microsoft.Extensions.Primitives stays at the lowest version for .NET 8.
- SECURITY.md asked to report vulnerabilities in public issues. It now points to GitHub private vulnerability reporting. - Replace the unrelated Azure rule in copilot-instructions.md with the build, test, code and documentation rules of this repository. - Replace the solution item for the missing ci.yml with the existing workflow files and dependabot.yml.
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
Depends on #23: this PR is based on its branch. After #23 is merged, change the base branch to
main.This PR fixes NuGet packaging and repository issues. It changes no library code and no public API.
Changes
Packages
/home/runner/work/HttpClientHints/HttpClientHints/src/HttpClientHints/HttpClientHints.cs.ContinuousIntegrationBuildis now set in GitHub Actions, so the paths are mapped to/_/src/....client-hints,user-agentandsec-ch-ua.CopyrightandPackageReleaseNotes(link to the GitHub releases).CI
dotnet format --verify-no-changes. The repository passes the check today.dotnet/nbgvis pinned tov0.5.2instead of themasterbranch.actions/download-artifactgoes from v4 to v8 inmain-build.yml. v5 changed the path only for downloads by ID; this workflow downloads by name. v8 fails on hash mismatches by default.Microsoft.Extensions.Primitivesis ignored: the packages reference the lowest version that supports .NET 8, and NuGetAudit reports vulnerable versions. Dependabot will propose the open major updates of the other actions (checkout, setup-dotnet, upload-artifact, release-drafter).Repository
.github/copilot-instructions.mdcontained only an unrelated Azure rule. It now lists the build, test, code and documentation rules of this repository..github/workflows/ci.ymlis replaced with the existing workflow files anddependabot.yml.Verification
With
GITHUB_ACTIONS=true, as in CI:dotnet build -c Release: 0 warnings.dotnet pack: both nuspecs contain the new description, tags, copyright and release notes. The embedded PDB lists/_/src/HttpClientHints/HttpClientHints.cs.dotnet test -c Releasewith coverage: 296 tests passed; line and branch coverage of both packages are still 100%.dotnet format --verify-no-changes: no changes.dependabot.ymlparse as YAML.