Skip to content

chore: deterministic packages, package metadata, CI checks, Dependabot and security policy - #24

Merged
BenjaminAbt merged 3 commits into
feat/native-aot-logo-readmefrom
chore/nuget-ci-repo-hygiene
Nov 24, 2026
Merged

BenjaminAbt merged 3 commits into
feat/native-aot-logo-readmefrom
chore/nuget-ci-repo-hygiene

Conversation

@BenjaminAbt

Copy link
Copy Markdown
Member

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

  • Deterministic builds in CI. The embedded PDBs of the published 3.3.5 packages contain paths of the build agent, for example /home/runner/work/HttpClientHints/HttpClientHints/src/HttpClientHints/HttpClientHints.cs. ContinuousIntegrationBuild is now set in GitHub Actions, so the paths are mapped to /_/src/....
  • Metadata
    • The core package had the product name "HTTP Client Agents", and its description said it identifies bots, which Client Hints cannot do. Both descriptions now describe what the packages do.
    • NuGet splits tags at spaces, so "User Agent" became the tags "User" and "Agent". The tags are now single words such as client-hints, user-agent and sec-ch-ua.
    • Added Copyright and PackageReleaseNotes (link to the GitHub releases).

CI

  • Formatting: every build runs dotnet format --verify-no-changes. The repository passes the check today.
  • dotnet/nbgv is pinned to v0.5.2 instead of the master branch.
  • actions/download-artifact goes from v4 to v8 in main-build.yml. v5 changed the path only for downloads by ID; this workflow downloads by name. v8 fails on hash mismatches by default.
  • Dependabot for NuGet and GitHub Actions, weekly and grouped: analyzers, test packages, BenchmarkDotNet, all actions. Microsoft.Extensions.Primitives is 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

  • SECURITY.md asked to report vulnerabilities in public issues. It now points to GitHub private vulnerability reporting, which is enabled for this repository.
  • .github/copilot-instructions.md contained only an unrelated Azure rule. It now lists the build, test, code and documentation rules of this repository.
  • Solution items: the missing .github/workflows/ci.yml is replaced with the existing workflow files and dependabot.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 Release with coverage: 296 tests passed; line and branch coverage of both packages are still 100%.
  • dotnet format --verify-no-changes: no changes.
  • All workflow files and dependabot.yml parse as YAML.

- 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.
@BenjaminAbt
BenjaminAbt merged commit 92e9b45 into feat/native-aot-logo-readme Nov 24, 2026
@BenjaminAbt
BenjaminAbt deleted the chore/nuget-ci-repo-hygiene branch November 24, 2026 22:00
@BenjaminAbt BenjaminAbt added the maintenance Build, CI, refactoring and other maintenance label Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Build, CI, refactoring and other maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant