Skip to content

Commit bec8547

Browse files
authored
enhancement: integrate sigstore signature (#272)
Resolves #271
1 parent d117c12 commit bec8547

File tree

5 files changed

+11
-0
lines changed

5 files changed

+11
-0
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ jobs:
2727
build-and-test:
2828
uses: ./.github/workflows/build-and-test.yml
2929
publish_artifacts:
30+
# permissions required for sigstore signature
31+
permissions:
32+
id-token: write
33+
contents: read
3034
needs:
3135
- version
3236
- build-and-test

.github/workflows/snapshot_release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ jobs:
2121
secrets:
2222
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2323
publish:
24+
# permissions required for sigstore signature
25+
permissions:
26+
id-token: write
27+
contents: read
2428
needs:
2529
- build-and-test
2630
runs-on: macos-latest

buildSrc/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ repositories {
88

99
dependencies {
1010
implementation(libs.kotlin.gradle.plugin)
11+
implementation(libs.sigstore.gradle.plugin)
1112
}

buildSrc/src/main/kotlin/convention.publication.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
plugins {
22
`maven-publish`
33
signing
4+
id("dev.sigstore.sign")
45
}
56

67
val javadocJar by tasks.registering(Jar::class) {

gradle/libs.versions.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ kotlin-codepoints = { group = "de.cketti.unicode", name = "kotlin-codepoints", v
4242
normalize = { group = "com.doist.x", name = "normalize", version = "1.1.1" }
4343
karacteristics = { group = "io.github.optimumcode", name = "karacteristics", version = "0.0.4" }
4444
kotlin-gradle-plugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
45+
sigstore-gradle-plugin = { module = "dev.sigstore:sigstore-gradle-sign-plugin", version = "1.3.0"}
4546

4647
[bundles]
4748
openapi = ["openapi-validator", "openapi-interfaces", "openapi-jackson"]

0 commit comments

Comments
 (0)