Skip to content

ci: skip release-please job when secret is not defined - #198

Merged
Vincent Biret (baywet) merged 1 commit into
mainfrom
ci/release-please-condition
Apr 20, 2026
Merged

ci: skip release-please job when secret is not defined#198
Vincent Biret (baywet) merged 1 commit into
mainfrom
ci/release-please-condition

Conversation

@baywet

Copy link
Copy Markdown
Member

The release-please workflow fails in forks or environments where RELEASE_PLEASE_TOKEN_PROVIDER_PEM is not configured, erroring at the GitHub App token generation step.

Changes

Added an if condition to skip the release job when the secret is absent:

if: ${{ secrets.RELEASE_PLEASE_TOKEN_PROVIDER_PEM != '' }}

Mirrors the fix from kiota-authentication-oauth-ruby#49.

@baywet
Vincent Biret (baywet) requested a review from a team as a code owner April 20, 2026 11:46
@baywet
Vincent Biret (baywet) enabled auto-merge (squash) April 20, 2026 11:46
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@baywet
Vincent Biret (baywet) force-pushed the ci/release-please-condition branch from 94b31af to e43a755 Compare April 20, 2026 11:59
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
C Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@baywet
Vincent Biret (baywet) merged commit df41a32 into main Apr 20, 2026
8 of 9 checks passed
@baywet
Vincent Biret (baywet) deleted the ci/release-please-condition branch April 20, 2026 15:15
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.

2 participants