Sibling of milestone #13. RFC #267.
What
Migrate NUGET_API_KEY from a repo-level Actions secret to an environment-scoped secret on the nuget-org GitHub Environment. This is the half of the env split that actually matters: the secret only becomes available to jobs that target environment: nuget-org, which combined with the approval gate means no accidental publishes from non-release workflows.
Acceptance criteria
Depends on
- Three environments exist (sibling issue).
Blocks
- Refactor
release.yml (the workflow needs to declare environment: nuget-org on the publish step).
Risk
- A botched migration leaves the workflow without the secret. Mitigate by doing the env-secret add first, then deleting the repo secret only after the next successful workflow run.
Sibling of milestone #13. RFC #267.
What
Migrate
NUGET_API_KEYfrom a repo-level Actions secret to an environment-scoped secret on thenuget-orgGitHub Environment. This is the half of the env split that actually matters: the secret only becomes available to jobs that targetenvironment: nuget-org, which combined with the approval gate means no accidental publishes from non-release workflows.Acceptance criteria
NUGET_API_KEYexists as an environment secret onnuget-org.NUGET_API_KEYrepo secret deleted (or kept as a transitional backup with a documented sunset).release.yml's reference to${{ secrets.NUGET_API_KEY }}continues to work in the job that declaresenvironment: nuget-org.Depends on
Blocks
release.yml(the workflow needs to declareenvironment: nuget-orgon the publish step).Risk