Skip to content

Move NUGET_API_KEY from repo secret to nuget-org environment secret #273

Description

@ChrisonSimtian

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

  • NUGET_API_KEY exists as an environment secret on nuget-org.
  • NUGET_API_KEY repo 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 declares environment: nuget-org.
  • No other workflow references this secret (verified via repo-wide grep on workflow files).

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions