Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Artifact Attestations #47

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/reusable-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,9 @@ jobs:
sign:
name: 🔒 Sign
needs: [init, push-release-commit, create-artifacts]
permissions:
id-token: write
attestations: write
runs-on: ubuntu-latest
env:
KEY_FINGERPRINT: ${{ needs.init.outputs.key_fingerprint }}
Expand Down Expand Up @@ -334,6 +337,9 @@ jobs:
echo "::error title=Artifact hash verification failed::Artifacts for signing don't match the hash values recorded when they were generated."
exit 1
fi
- uses: actions/attest-build-provenance@v1
with:
subject-path: '${{ env.LOCAL_ARTIFACTS_STAGING_PATH }}/**/*.jar'
- uses: actions/setup-java@v4
with:
distribution: corretto
Expand Down