Skip to content

Validate signing of source asset - #5328

Merged
ellahathaway merged 4 commits into
dotnet:mainfrom
ellahathaway:detached-signature-validation
Jun 25, 2026
Merged

ellahathaway merged 4 commits into
dotnet:mainfrom
ellahathaway:detached-signature-validation

Conversation

@ellahathaway

@ellahathaway ellahathaway commented Mar 9, 2026 •

Copy link
Copy Markdown
Member

Related to https://github.com/dotnet/release/issues/1416

Validates the detached signature of the dotnet-source-*.tar.gz artifact

@ellahathaway

Copy link
Copy Markdown
Member Author

Blocked - waiting on a rebootstrap PR that includes #6404

@ellahathaway

Copy link
Copy Markdown
Member Author

Unblocked by #6019, ready for review

@ellahathaway
ellahathaway marked this pull request as ready for review June 15, 2026 16:02
Copilot AI review requested due to automatic review settings June 15, 2026 16:02
@ellahathaway
ellahathaway requested review from a team as code owners June 15, 2026 16:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Enables signing validation coverage for the source-build “dotnet-source-*” artifact by downloading it into the signing validation input set and preventing SignCheck from unpacking it during recursive checks.

Changes:

  • Add a SignCheck exclusion to mark dotnet-source-*.tar.gz as DO-NOT-UNPACK.
  • Update the Linux signing validation pipeline step to download dotnet-source-* from the source-build artifacts.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
eng/SignCheckExclusionsFile.txt Adds a DO-NOT-UNPACK rule for the dotnet-source-*.tar.gz artifact so SignCheck validates the artifact without inspecting its contents.
eng/pipelines/templates/steps/vmr-validate-signing.yml Downloads the dotnet-source-* artifact into the SignCheck input directory for Linux signing validation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ellahathaway
ellahathaway enabled auto-merge (squash) June 15, 2026 18:02
@ViktorHofer

Copy link
Copy Markdown
Member

@ellahathaway this code path isn't exercised in CI. Do you want to submit a validation PR before merging?

@ViktorHofer
ViktorHofer disabled auto-merge June 15, 2026 18:39
@ellahathaway

Copy link
Copy Markdown
Member Author

@ellahathaway this code path isn't exercised in CI. Do you want to submit a validation PR before merging?

I validated everything locally and am confident in the changes:

Signing validation output:

ellahathaway@LAPTOP-UCQ8BKSV:/mnt/c/Users/ellahathaway/Repos/dotnet$ ./eng/common/dotnet.sh build ./eng/signing-validation.proj /p:ArtifactDownloadDirectory=/mnt/c/Users/ellahathaway/Repos/dotnet/assets/ /p:SignDacEnabled=false /p:OutputLogsDirectory=/mnt/c/Users/ellahathaway/Repos/dotnet/artifacts /p:RestoreAdditionalProjectSources="/mnt/c/Users/ellahathaway/Downloads/arcade" /p:MicrosoftDotNetSignCheckTaskVersion=<version> /bl:"/mnt/c/Users/ellahathaway/Repos/dotnet/artifacts/signing-validation.binlog"
...
  Preparing files to sign check...
     No manifests in '/mnt/c/Users/ellahathaway/Repos/dotnet/assets/Release' to parse for files to sign check. All files defined in the directory will be included...
Starting execution of SignCheck.

Results

No signing issues found
Total Time: 00:00:05.6509431
Total Files: 2, Signed: 1, Unsigned: 0, Skipped: 1, Excluded: 0, Skipped & Excluded: 0, Not Unpacked: 1

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:13.12

Results XML:

<SignCheckResults>
	<File Name="dotnet-source-<version>.tar.gz" Outcome="Signed" Misc="Timestamp: 05/22/26 20:17:20 (RSA)" />
	<File Name="dotnet-source-<version>.tar.gz.sig" Outcome="Skipped" />
</SignCheckResults>

@ellahathaway
ellahathaway enabled auto-merge (squash) June 16, 2026 17:08
@ellahathaway
ellahathaway requested a review from akoeplinger June 18, 2026 17:12
@ellahathaway

Copy link
Copy Markdown
Member Author

@dotnet/source-build - can I get a review on this? Thanks in advance

@ellahathaway
ellahathaway merged commit 58d582b into dotnet:main Jun 25, 2026
11 checks passed
@ellahathaway

Copy link
Copy Markdown
Member Author

/backport to release/10.0.1xx

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/10.0.1xx (link to workflow run)

@ellahathaway

Copy link
Copy Markdown
Member Author

/backport to release/10.0.3xx

@ellahathaway

Copy link
Copy Markdown
Member Author

/backport to release/10.0.4xx

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/10.0.3xx (link to workflow run)

@github-actions

Copy link
Copy Markdown
Contributor

@ellahathaway backporting to release/10.0.1xx failed, the patch most likely resulted in conflicts. Please backport manually!

git am output
$ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch

Applying: Validate signing of source asset
Using index info to reconstruct a base tree...
M	eng/pipelines/templates/steps/vmr-validate-signing.yml
Falling back to patching base and 3-way merge...
Auto-merging eng/pipelines/templates/steps/vmr-validate-signing.yml
CONFLICT (content): Merge conflict in eng/pipelines/templates/steps/vmr-validate-signing.yml
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0001 Validate signing of source asset
Error: The process '/usr/bin/git' failed with exit code 128

Link to workflow output

@github-actions

Copy link
Copy Markdown
Contributor

@ellahathaway backporting to release/10.0.3xx failed, the patch most likely resulted in conflicts. Please backport manually!

git am output
$ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch

Applying: Validate signing of source asset
Using index info to reconstruct a base tree...
M	eng/pipelines/templates/steps/vmr-validate-signing.yml
Falling back to patching base and 3-way merge...
Auto-merging eng/pipelines/templates/steps/vmr-validate-signing.yml
CONFLICT (content): Merge conflict in eng/pipelines/templates/steps/vmr-validate-signing.yml
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0001 Validate signing of source asset
Error: The process '/usr/bin/git' failed with exit code 128

Link to workflow output

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/10.0.4xx (link to workflow run)

@github-actions

Copy link
Copy Markdown
Contributor

@ellahathaway backporting to release/10.0.4xx failed, the patch most likely resulted in conflicts. Please backport manually!

git am output
$ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch

Applying: Validate signing of source asset
Using index info to reconstruct a base tree...
M	eng/pipelines/templates/steps/vmr-validate-signing.yml
Falling back to patching base and 3-way merge...
Auto-merging eng/pipelines/templates/steps/vmr-validate-signing.yml
CONFLICT (content): Merge conflict in eng/pipelines/templates/steps/vmr-validate-signing.yml
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0001 Validate signing of source asset
Error: The process '/usr/bin/git' failed with exit code 128

Link to workflow output

akoeplinger pushed a commit that referenced this pull request Jul 7, 2026
akoeplinger pushed a commit that referenced this pull request Jul 7, 2026
akoeplinger pushed a commit that referenced this pull request Jul 7, 2026
akoeplinger pushed a commit that referenced this pull request Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants