Skip to content

Commit d361b69

Browse files
authored
feat: artefact attestation (#987)
fixes #772
1 parent 615cfbc commit d361b69

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ jobs:
1414
build-linux:
1515
name: Build for ${{matrix.target}}
1616
runs-on: ubuntu-latest
17+
permissions:
18+
id-token: write
19+
contents: read
20+
attestations: write
1721
strategy:
1822
fail-fast: false
1923
matrix:
@@ -39,6 +43,11 @@ jobs:
3943
run: |
4044
mv target/${{ matrix.target }}/release/parseable Parseable_OSS_${{ matrix.target }}
4145
46+
- name: Generate artifact attestation
47+
uses: actions/attest-build-provenance@v1
48+
with:
49+
subject-path: Parseable_OSS_${{ matrix.target }}
50+
4251
- name: Create Artifact
4352
uses: actions/upload-artifact@v4
4453
with:
@@ -56,6 +65,10 @@ jobs:
5665

5766
build-windows:
5867
runs-on: windows-latest
68+
permissions:
69+
id-token: write
70+
contents: read
71+
attestations: write
5972
steps:
6073
- name: Checkout
6174
uses: actions/checkout@v1
@@ -75,6 +88,11 @@ jobs:
7588
run: |
7689
mv target/x86_64-pc-windows-msvc/release/PARSEABLE.exe Parseable_OSS_x86_64-pc-windows-msvc.exe
7790
91+
- name: Generate artifact attestation
92+
uses: actions/attest-build-provenance@v1
93+
with:
94+
subject-path: Parseable_OSS_x86_64-pc-windows-msvc.exe
95+
7896
- name: Create artifact for Windows
7997
uses: actions/upload-artifact@v4
8098
with:
@@ -92,6 +110,10 @@ jobs:
92110

93111
build-mac:
94112
runs-on: macos-latest
113+
permissions:
114+
id-token: write
115+
contents: read
116+
attestations: write
95117
strategy:
96118
matrix:
97119
target:
@@ -120,6 +142,11 @@ jobs:
120142
run: |
121143
mv target/${{ matrix.target }}/release/Parseable Parseable_OSS_${{ matrix.target }}
122144
145+
- name: Generate artifact attestation
146+
uses: actions/attest-build-provenance@v1
147+
with:
148+
subject-path: Parseable_OSS_${{ matrix.target }}
149+
123150
- name: Create artifact
124151
uses: actions/upload-artifact@v4
125152
with:

0 commit comments

Comments
 (0)