diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c58cbaa..92ea558 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,9 @@ on: types: [published] jobs: publish: + permissions: + id-token: write + attestations: write runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -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"