Skip to content

Commit

Permalink
Attest build
Browse files Browse the repository at this point in the history
Add build attestation.
  • Loading branch information
chrisstaite committed Jan 13, 2025
1 parent e48fe5c commit ac0e7af
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: CMake
permissions:
contents: write
pull-requests: write
id-token: write
attestations: write

on:
push:
Expand Down Expand Up @@ -38,7 +40,11 @@ jobs:

- name: Rename for upload
run: mv ${{github.workspace}}/build/dote ${{github.workspace}}/build/dote_linux


- uses: actions/attest-build-provenance@v2
with:
subject-path: ${{github.workspace}}/build/dote_linux

- name: Upload release binary
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda #v2
if: github.event_name == 'release' && github.event.action == 'created'
Expand Down Expand Up @@ -103,6 +109,10 @@ jobs:
- name: Rename for upload
run: mv ${{github.workspace}}/build/dote ${{github.workspace}}/build/dote_${{matrix.architecture}}

- uses: actions/attest-build-provenance@v2
with:
subject-path: ${{github.workspace}}/build/dote_${{matrix.architecture}}

- name: Upload release binary
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda #v2
if: github.event_name == 'release' && github.event.action == 'created'
Expand Down Expand Up @@ -135,6 +145,10 @@ jobs:
- name: Rename for upload
run: mv ${{github.workspace}}/build_mac/dote ${{github.workspace}}/build_mac/dote_mac

- uses: actions/attest-build-provenance@v2
with:
subject-path: ${{github.workspace}}/build_mac/dote_mac

- name: Upload release binary
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda #v2
if: github.event_name == 'release' && github.event.action == 'created'
Expand Down

0 comments on commit ac0e7af

Please sign in to comment.