Skip to content

Conversation

@shijie-oai
Copy link
Collaborator

@shijie-oai shijie-oai commented Dec 7, 2025

Summary

Set up codesign for windows dist with Azure trusted signing and its github action integration.

@shijie-oai shijie-oai marked this pull request as draft December 7, 2025 00:44
Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

- if: ${{ contains(matrix.target, 'windows') }}
name: Sign Windows binaries with Azure Trusted Signing
uses: ./.github/actions/windows-code-sign
with:
target: ${{ matrix.target }}
Copy link
Contributor

Choose a reason for hiding this comment

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

P1 Badge Gate Windows signing step on non-fork PRs

The new Windows signing step runs for every Windows matrix entry in PRs (conditional only on contains(matrix.target, 'windows')), yet the step immediately consumes repository secrets (AZURE_TRUSTED_SIGNING_*). Forked pull requests do not receive these secrets, so azure/login@v2 will fail before the build completes, breaking all forked PRs on Windows. Mirror the Linux signing guard (skip when github.event.pull_request.head.repo.fork is true) so contributors’ PRs continue to build.

Useful? React with 👍 / 👎.

@shijie-oai shijie-oai force-pushed the shijie/windows-codesigning branch from afba26b to 9646eca Compare December 8, 2025 07:02
@shijie-oai shijie-oai changed the base branch from shijie/linux-codesigning to main December 8, 2025 07:20
@shijie-oai shijie-oai changed the base branch from main to shijie/linux-codesigning December 8, 2025 07:20
@shijie-oai shijie-oai marked this pull request as ready for review December 8, 2025 07:23
@shijie-oai shijie-oai requested a review from gpeal December 8, 2025 07:23
Base automatically changed from shijie/linux-codesigning to main December 8, 2025 19:13
@shijie-oai shijie-oai force-pushed the shijie/windows-codesigning branch from 9646eca to 546345a Compare December 8, 2025 19:17

- if: ${{ contains(matrix.target, 'windows') }}
name: Sign Windows binaries with Azure Trusted Signing
uses: ./.github/actions/windows-code-sign
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@codex should I update the runners to not be the @latest given the runner requirement at https://github.com/Azure/trusted-signing-action for trusted signing action.

Copy link
Contributor

Choose a reason for hiding this comment

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

Summary

  • Pinned the Windows x86_64 build matrix entry to windows-2022 to align with Azure Trusted Signing runner requirements.
  • Skipped the Windows signing step on forked pull requests to avoid failing when secrets are unavailable.

Testing

  • ⚠️ Not run (workflow change only)

View task →

@shijie-oai shijie-oai merged commit badda73 into main Dec 8, 2025
26 checks passed
@shijie-oai shijie-oai deleted the shijie/windows-codesigning branch December 8, 2025 23:12
@github-actions github-actions bot locked and limited conversation to collaborators Dec 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants