Skip to content

ci: Skip package signing on pull requests as intended - #1080

Merged
MartinZikmund merged 1 commit into
unoplatform:mainfrom
mikernet:dev/mikernet/sign-condition
Oct 8, 2026
Merged

MartinZikmund merged 1 commit into
unoplatform:mainfrom
mikernet:dev/mikernet/sign-condition

Conversation

@mikernet

Copy link
Copy Markdown
Contributor

Fixes #1079

What is the current behavior?

The Authenticode Sign Packages step in build/ci/stage-build-packages.yml has its condition: indented under env:, so Azure Pipelines treats it as an environment variable and the step always runs. Pull requests from forks have no signing secrets, so the step fails with Invalid tenant id provided and the Packages Windows job goes red, as on #1077.

What is the new behavior?

The condition: is at the task level, so the step is skipped on pull requests and when the signing secrets are empty, which is what the condition already said.

Validation

This PR comes from a fork, so its own Packages Windows job is the test: the signing step should now be skipped and the job should pass.

The signing step's condition was indented under env, so the pipeline
read it as an environment variable and the step always ran. Pull
requests from forks have no signing secrets and failed on an invalid
tenant id.
Copilot AI lite review requested due to automatic review settings September 21, 2026 13:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The change correctly applies the existing skip condition at the Azure Pipelines task level.

Copilot wasn't able to review any files in this pull request.


💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@mikernet

mikernet commented Oct 3, 2026

Copy link
Copy Markdown
Contributor Author

For context: this is what is failing Packages Windows on #1077, #1082, #1084 and #1086. On each of them the only failing task is Authenticode Sign Packages, with the sign tool rejecting an empty Azure tenant id because PR builds don't receive the signing secrets. The misplaced condition means signing runs on pull requests despite the build.reason check, and this PR is the only one of the five with a green Packages Windows job.

@MartinZikmund
MartinZikmund merged commit 843915d into unoplatform:main Oct 8, 2026
13 checks passed
@mergify

mergify Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

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.

CI: package signing step runs on fork pull requests because its condition is nested under env

3 participants