Repository navigation
ci: push the SDK through nuget.org trusted publishing - #38
Open
mmalkhatib wants to merge 1 commit into
Open
mmalkhatib wants to merge 1 commit into
mmalkhatib wants to merge 1 commit into
Conversation
The org's SWNUGETKEY API key has expired, so the SDK push to nuget.org now fails with 403. Trusted publishing trades the job's OIDC token for a one-hour key, so nothing stored can expire. nuget.org requires the token's job_workflow_ref to be in this repository, so the shared service workflow no longer pushes (its nuget-projects is empty; build and tests still run there) and a nuget job here logs in with NuGet/login (NUGET_USER) and pushes the SDK with the version the shared workflow computed.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The org's
SWNUGETKEYnuget.org API key has expired, so the SDK push from this pipeline now fails with403. SW-EfCoreExtensions hit it first: simplify9/SW-EfCoreExtensions#76.What
reusable-service-cicd.ymlno longer pushes the SDK:nuget-projectsis empty, and the build and tests still run there.nugetjob in this file runs after it. It logs in withNuGet/login@v1(OIDC → one-hour key,NUGET_USER) and pushes the SDK with the version the shared workflow computed.job_workflow_refto be in this repository, which the shared workflow's isn't (Support for reusable workflows in different repositories NuGet/login#24).--skip-duplicatemakes that safe.Before merging
A nuget.org trusted-publishing policy for this repo:
The repository variable
NUGET_USERis set.