Skip to content

Commit

Permalink
chore: Attest release artifacts with sigstore/cosign (#6016)
Browse files Browse the repository at this point in the history
This ensures all builds are verifiable by https://www.sigstore.dev/.

Co-authored-by: ludvigch <[email protected]>
  • Loading branch information
RafDevX and ludvigch authored Oct 26, 2024
1 parent ceb0a3c commit 51b5032
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/jreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
required: true
type: string

permissions:
id-token: write # for verifying identity in attestation process
attestations: write # to push attestation

jobs:
jreleaser:
runs-on: ubuntu-latest
Expand All @@ -29,6 +33,11 @@ jobs:
JRELEASER_NEXUS2_MAVEN_CENTRAL_USERNAME: ${{ secrets.JRELEASER_NEXUS2_MAVEN_CENTRAL_USERNAME }}
JRELEASER_NEXUS2_MAVEN_CENTRAL_PASSWORD: ${{ secrets.JRELEASER_NEXUS2_MAVEN_CENTRAL_PASSWORD }}

- name: Sign artifacts with sigstore/cosign
uses: actions/attest-build-provenance@1c608d11d69870c2092266b3f9a6f3abbf17002c # v1.4.3
with:
subject-path: './target/staging-deploy/**/*.jar'

# Log failures
- name: JReleaser release output
if: always()
Expand Down

0 comments on commit 51b5032

Please sign in to comment.