Skip to content

Commit 4f0eaae

Browse files
add sigstore signature
[deploy]
1 parent 7e0c8cb commit 4f0eaae

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
name: Build and Test
1313
runs-on: ubuntu-latest
1414
permissions:
15-
id-token: write # Required for the attestations step
15+
id-token: write # OIDC token for the attestations step
1616
attestations: write # Required for the attestations step
1717
outputs:
1818
sha256: ${{ steps.checksums.outputs.sha256 }}
@@ -67,7 +67,9 @@ jobs:
6767
deploy-central:
6868
name: Deploy to Maven Central
6969
runs-on: ubuntu-latest
70-
permissions: {}
70+
permissions:
71+
id-token: write # OIDC token for sigstore signing
72+
contents: read # Required for sigstore signing
7173
needs: [build]
7274
if: github.repository_owner == 'cryptomator' && (startsWith(github.ref, 'refs/tags/') || contains(github.event.head_commit.message, '[deploy]'))
7375
steps:
@@ -99,6 +101,8 @@ jobs:
99101
runs-on: ubuntu-latest
100102
permissions:
101103
packages: write # Required for the deploy to GitHub Packages step
104+
id-token: write # OIDC token for sigstore signing
105+
contents: read # Required for sigstore signing
102106
needs: [build]
103107
if: github.repository_owner == 'cryptomator' && (startsWith(github.ref, 'refs/tags/') || contains(github.event.head_commit.message, '[deploy]'))
104108
steps:

pom.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,19 @@
325325
</execution>
326326
</executions>
327327
</plugin>
328+
<plugin>
329+
<groupId>dev.sigstore</groupId>
330+
<artifactId>sigstore-maven-plugin</artifactId>
331+
<version>2.0.0-rc2</version>
332+
<executions>
333+
<execution>
334+
<id>sign</id>
335+
<goals>
336+
<goal>sign</goal>
337+
</goals>
338+
</execution>
339+
</executions>
340+
</plugin>
328341
</plugins>
329342
</build>
330343
</profile>

0 commit comments

Comments
 (0)