Problem
NUGET_API_KEY is a long-lived API key, and WINGET_TOKEN / HOMEBREW_TAP_TOKEN are long-lived PATs. Long-lived bearer secrets are higher-risk if leaked, and require manual rotation.
Fix
- Use NuGet trusted publishing (OIDC) to replace
NUGET_API_KEY with short-lived, workflow-scoped tokens.
- Where feasible, replace the Homebrew tap PAT with a GitHub App installation token scoped to the tap repo only.
- Document the rotation cadence for anything that must stay a PAT.
Tokens are already minimally scoped (good); this removes the durable-secret risk entirely.
Priority: Medium
Problem
NUGET_API_KEYis a long-lived API key, andWINGET_TOKEN/HOMEBREW_TAP_TOKENare long-lived PATs. Long-lived bearer secrets are higher-risk if leaked, and require manual rotation.Fix
NUGET_API_KEYwith short-lived, workflow-scoped tokens.Tokens are already minimally scoped (good); this removes the durable-secret risk entirely.
Priority: Medium