Skip to content

enhancement: integrate sigstore signature #272

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ jobs:
build-and-test:
uses: ./.github/workflows/build-and-test.yml
publish_artifacts:
# permissions required for sigstore signature
permissions:
id-token: write
contents: read
needs:
- version
- build-and-test
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/snapshot_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ jobs:
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
publish:
# permissions required for sigstore signature
permissions:
id-token: write
contents: read
needs:
- build-and-test
runs-on: macos-latest
Expand Down
1 change: 1 addition & 0 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ repositories {

dependencies {
implementation(libs.kotlin.gradle.plugin)
implementation(libs.sigstore.gradle.plugin)
}
1 change: 1 addition & 0 deletions buildSrc/src/main/kotlin/convention.publication.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
`maven-publish`
signing
id("dev.sigstore.sign")
}

val javadocJar by tasks.registering(Jar::class) {
Expand Down
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ kotlin-codepoints = { group = "de.cketti.unicode", name = "kotlin-codepoints", v
normalize = { group = "com.doist.x", name = "normalize", version = "1.1.1" }
karacteristics = { group = "io.github.optimumcode", name = "karacteristics", version = "0.0.4" }
kotlin-gradle-plugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
sigstore-gradle-plugin = { module = "dev.sigstore:sigstore-gradle-sign-plugin", version = "1.3.0"}

[bundles]
openapi = ["openapi-validator", "openapi-interfaces", "openapi-jackson"]
Expand Down
Loading