Skip to content

Commit

Permalink
Attest build files
Browse files Browse the repository at this point in the history
  • Loading branch information
VenomVendor committed Jun 22, 2024
1 parent 145cb46 commit 8f216b1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ jobs:
strategy:
matrix:
java: ["11", "21"]

permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -55,6 +57,11 @@ jobs:
compression-level: 9
overwrite: true

- name: Attest
uses: actions/attest-build-provenance@v1.3.2
with:
subject-path: "build/libs/**/*"

code-coverage:
needs: build
name: Test on Java 17
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ jobs:
runs-on: ubuntu-latest
environment: publish
needs: code-coverage
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- name: Setup Java 11
Expand Down Expand Up @@ -90,3 +93,8 @@ jobs:
- name: Remove Gradle cache lock file
if: always()
run: rm -rvf $HOME/.gradle/caches/modules-2/modules-2.lock

- name: Attest
uses: actions/attest-build-provenance@v1.3.2
with:
subject-path: "build/libs/**/*"

0 comments on commit 8f216b1

Please sign in to comment.