Skip to content

Package checks, Source Link, Dependabot, SECURITY.md - #5

Merged
enadzan merged 5 commits into
mainfrom
package-checks
Nov 20, 2026
Merged

enadzan merged 5 commits into
mainfrom
package-checks

Conversation

@enadzan

@enadzan enadzan commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Brings PgFreshCache in line with what PgOutput2Json added for package safety and repeatable builds.

Package (PgFreshCache.Lite.csproj)

  • Public API lists (PublicApiAnalyzers 5.6.0): PublicAPI.Shipped.txt holds the API of 2.0.0-rc.1, generated from the tag. PublicAPI.Unshipped.txt holds the one change since then: UseSqlite's optional sqliteOptionsAction. A public change now fails the build (RS0016/RS0017) until it's listed.
  • Package validation: the package is compared with 2.0.0-rc.1 on nuget.org, and its target frameworks with each other. To check it, I renamed a public method temporarily: the Release build failed on net8.0, net9.0 and net10.0.
  • Source Link: the PDB maps /_/* to raw.githubusercontent.com/PgOutput2Json/PgFreshCache/<commit>/*, and the nuspec records the repository, branch and commit. No local paths leak into the PDB.
  • Deterministic builds: Release builds are ContinuousIntegrationBuild.

Repository

  • Dependabot: monthly grouped updates for NuGet and GitHub Actions. Major versions are done by hand; EF Core 9 must stay on net8.0/net9.0. Microsoft.Extensions.Hosting.Abstractions stays at the lowest version for each target framework.
  • SECURITY.md: private reports go through the Security tab. In scope: writes through the read-only cache context, SQL injection, a cache getting the wrong options, and leaked secrets. Out of scope: the cache holding a copy of the published data, and file cache permissions. Issues in the replication itself go to PgOutput2Json.
  • publish.sh: builds the package in Release (so validation runs) and pushes it, like PgOutput2Json's. It refuses a dirty tree, warns when HEAD isn't tagged v<version>, and doesn't store the API key.
  • AGENTS.md: commands, tests, and the package and release workflow: how to update the API lists, and when the baseline moves.

Repository settings (already applied, matching PgOutput2Json)

Turned on: private vulnerability reporting (the target of SECURITY.md), Dependabot security updates, secret scanning with push protection, and CodeQL default setup for actions and csharp. The default GITHUB_TOKEN is now read-only, and Actions can no longer approve pull requests. A tag ruleset makes v* release tags impossible to move or delete, which publish.sh and Source Link depend on.

Testing

The Release build is clean, and all 35 tests pass on net8.0 and net10.0.

🤖 Generated with Claude Code

https://claude.ai/code/session_01MHH4BHxqjhJ2E5wzZY15Tr

enadzan and others added 5 commits November 20, 2026 23:07
…stic builds

PgFreshCache.Lite now, like the PgOutput2Json packages:
- tracks its public API with PublicApiAnalyzers, in PublicAPI.Shipped.txt
  (the API of 2.0.0-rc.1) and PublicAPI.Unshipped.txt (the optional
  sqliteOptionsAction of UseSqlite since then); a public change fails the
  build until it is listed
- is validated against 2.0.0-rc.1 on nuget.org, and between its target
  frameworks (EnablePackageValidation)
- publishes the repository URL and embeds untracked sources, so the symbols
  map to the commit with Source Link
- builds deterministically in Release (ContinuousIntegrationBuild)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MHH4BHxqjhJ2E5wzZY15Tr
Major versions of NuGet packages are left to be done by hand (EF Core 9 must
stay on net8.0/net9.0), and Microsoft.Extensions.Hosting.Abstractions stays at
the lowest version for each target framework.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MHH4BHxqjhJ2E5wzZY15Tr
Like PgOutput2Json's: refuses a dirty working tree, warns when HEAD is not
tagged v<version>, removes a stale package first, and asks for the API key
without writing it anywhere.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MHH4BHxqjhJ2E5wzZY15Tr
@enadzan
enadzan merged commit 88a57c8 into main Nov 20, 2026
4 checks passed
@enadzan
enadzan deleted the package-checks branch November 20, 2026 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant