Skip to content

feat: explicit skipSigning flag for staging CI jobs - #77

Merged
Besi97 merged 1 commit into
mainfrom
fix/conditional-signing-for-ci
Aug 6, 2026
Merged

Besi97 merged 1 commit into
mainfrom
fix/conditional-signing-for-ci

Conversation

@Besi97

@Besi97 Besi97 commented Aug 6, 2026

Copy link
Copy Markdown
Owner

Problem

Dependabot PRs were failing CI because the build unconditionally attempts to sign Maven publications, but PRs from forks don't have access to repository secrets (PGP signing keys).

Solution

Added a Gradle property skipSigning to explicitly control whether signing is performed:

  • build.gradle: Check for skipSigning property before calling signAllPublications()
  • github.yml: Pass -PskipSigning=true for pull_request builds where secrets are unavailable

Benefits

  • Signing behavior is documented and explicit rather than silently skipping
  • PR checks are consistent - all PR builds skip signing
  • Main branch pushes still sign (secrets available)
  • Easy to understand and maintain

Add a Gradle property 'skipSigning' to explicitly disable Maven publication
signing. The CI workflow passes this flag for pull_request builds where
repository secrets are not available (e.g., Dependabot PRs from forks).

This makes the signing behavior documented and consistent rather than
silently skipping when keys are missing.
@Besi97
Besi97 merged commit 4789acf into main Aug 6, 2026
3 checks passed
@Besi97
Besi97 deleted the fix/conditional-signing-for-ci branch August 6, 2026 12:57
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