Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Commit 5b766ba

Browse files
authored
[Repository Signing] Add PROD repository signing certificate (#490)
Add the PROD repository signing certificate to Process Signature job.
1 parent d4e769d commit 5b766ba

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/Validation.PackageSigning.ProcessSignature/Settings/prod.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
"ConnectionString": "DefaultEndpointsProtocol=https;AccountName=nugetgallery;AccountKey=$$Prod-NuGetGalleryStorage-Key$$"
2020
},
2121
"ProcessSignature": {
22-
"AllowedRepositorySigningCertificates": [],
22+
"AllowedRepositorySigningCertificates": [
23+
"cf7ac17ad047ecd5fdc36822031b12d4ef078b6f2b4c5e6ba41f8ff2cf4bad67"
24+
],
2325
"V3ServiceIndexUrl": "https://api.nuget.org/v3/index.json"
2426
},
2527

src/Validation.PackageSigning.ProcessSignature/SignatureValidator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ private async Task<bool> IsValidRepositorySignatureAsync<T>(Context context, T s
420420
context.Message.PackageId,
421421
context.Message.PackageVersion,
422422
context.Message.ValidationId,
423-
signature.V3ServiceIndexUrl.AbsoluteUri);
423+
signature.V3ServiceIndexUrl?.AbsoluteUri);
424424

425425
return false;
426426
}

0 commit comments

Comments
 (0)