Skip to content

Commit

Permalink
Adding actions/attest-build-provenance@v1
Browse files Browse the repository at this point in the history
For the build that is published to maven central, the attestation is performed.
  • Loading branch information
JaredHatfield authored Sep 28, 2024
1 parent 85a9577 commit 5cccda2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
types: [published]
jobs:
publish:
permissions:
id-token: write
attestations: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -25,3 +28,6 @@ jobs:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
- uses: actions/attest-build-provenance@v1
with:
subject-path: "target/*.jar"

0 comments on commit 5cccda2

Please sign in to comment.