Skip to content

Gate publishing on protected integration tests - #3

Merged
jformacek merged 1 commit into
mainfrom
jformacek-cross-platform-powershell-tests
Sep 4, 2026
Merged

Gate publishing on protected integration tests#3
jformacek merged 1 commit into
mainfrom
jformacek-cross-platform-powershell-tests

Conversation

@jformacek

Copy link
Copy Markdown
Contributor

The release workflow currently runs integration-tagged tests without access to the protected configuration, causing federated authentication to fail before signing and publishing. This separates credentialed integration coverage from the release job and makes it an explicit publishing gate.

Changes

  • Add a protected integration job using the confidential-client-integration GitHub Environment and OIDC permission.
  • Require both client-secret and federated credential tests to pass before the publish job proceeds.
  • Keep the Windows release job secret-free and run only non-integration Pester coverage there.
  • Skip federated tests consistently when their GitHub OIDC configuration is unavailable outside integration jobs.
  • Allow v* release tags to use the protected integration environment.

Validation

A non-publishing manual rehearsal completed successfully with both the confidential-client integration job and the full publishToGallery job passing.

Run credentialed tests in the protected integration environment before release work, keep publish unit tests secret-free, and skip unconfigured federated tests consistently.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@jformacek
jformacek merged commit a464b2c into main Sep 4, 2026
6 checks passed
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.

1 participant