Skip to content

Commit

Permalink
Merge pull request #138 from GiganticMinecraft/feat/attest
Browse files Browse the repository at this point in the history
ci: generate artifact attestations
  • Loading branch information
Lucky3028 authored Sep 12, 2024
2 parents a6c3226 + a0fb575 commit 3e9babb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ jobs:
name: Build
runs-on: ubuntu-22.04
timeout-minutes: 5
# actions/attest-build-provenance requires these permissions
permissions:
id-token: write
attestations: write
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Output SHA
Expand All @@ -28,6 +32,10 @@ jobs:
cache: gradle
- name: Build
run: ./gradlew jar
- name: Generate artifact attestations
uses: actions/attest-build-provenance@1c608d11d69870c2092266b3f9a6f3abbf17002c # v1.4.3
with:
subject-path: ./build/libs/*.jar
- name: Upload a jar
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
Expand Down

0 comments on commit 3e9babb

Please sign in to comment.