Skip to content

Commit 9dc316b

Browse files
committed
workflows: Use artifact-attestations for binaries
1 parent 5e5bcff commit 9dc316b

File tree

4 files changed

+44
-0
lines changed

4 files changed

+44
-0
lines changed

.github/workflows/matrix_multi_build_and_release.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ on:
1818
type: choice
1919
options: ["1", "2", "3", "4", "5", "6", "7", "8", "9"]
2020

21+
permissions:
22+
id-token: write
23+
contents: read
24+
attestations: write
25+
2126
concurrency:
2227
group: ${{ github.workflow }}-${{ github.ref }}
2328
cancel-in-progress: true
@@ -147,6 +152,12 @@ jobs:
147152
if: env.disable_qt5 != 'yes' # When qBittorrent v5 is released, remove this
148153
run: docker exec -w /root/${{ env.qbt_build_dir }}/completed multiarch mv -f qbittorrent-nox ${{ matrix.qbt_cross_name }}-${{ matrix.qbt_qt_version_name }}qbittorrent-nox
149154

155+
- name: Generate artifact attestation ${{ github.event.inputs.distinct_id }}
156+
if: env.disable_qt5 != 'yes' # When qBittorrent v5 is released, remove this
157+
uses: actions/attest-build-provenance@v1
158+
with:
159+
subject-path: "${{ env.qbt_build_dir }}/completed/${{ matrix.qbt_cross_name }}-${{ matrix.qbt_qt_version_name }}qbittorrent-nox"
160+
150161
- name: Docker - Release Info ${{ github.event.inputs.distinct_id }}
151162
if: env.disable_qt5 != 'yes' # When qBittorrent v5 is released, remove this
152163
run: docker exec -w /root/${{ env.qbt_build_dir }}/release_info multiarch bash -c 'mv *.md *.json '/root/${{ env.qbt_build_dir }}/completed''

.github/workflows/matrix_multi_build_and_release_artifacts.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ on:
1818
type: choice
1919
options: ["1", "2", "3", "4", "5", "6", "7", "8", "9"]
2020

21+
permissions:
22+
id-token: write
23+
contents: read
24+
attestations: write
25+
2126
concurrency:
2227
group: ${{ github.workflow }}-${{ github.ref }}
2328
cancel-in-progress: true
@@ -211,6 +216,12 @@ jobs:
211216
if: env.disable_qt5 != 'yes' # When qBittorrent v5 is released, remove this
212217
run: docker exec -w /root/${{ env.qbt_build_dir }}/completed multiarch mv -f qbittorrent-nox ${{ matrix.qbt_cross_name }}-${{ matrix.qbt_qt_version_name }}qbittorrent-nox
213218

219+
- name: Generate artifact attestation ${{ github.event.inputs.distinct_id }}
220+
if: env.disable_qt5 != 'yes' # When qBittorrent v5 is released, remove this
221+
uses: actions/attest-build-provenance@v1
222+
with:
223+
subject-path: "${{ env.qbt_build_dir }}/completed/${{ matrix.qbt_cross_name }}-${{ matrix.qbt_qt_version_name }}qbittorrent-nox"
224+
214225
- name: Docker - Release Info ${{ github.event.inputs.distinct_id }}
215226
if: env.disable_qt5 != 'yes' # When qBittorrent v5 is released, remove this
216227
run: docker exec -w /root/${{ env.qbt_build_dir }}/release_info multiarch bash -c 'mv *.md *.json '/root/${{ env.qbt_build_dir }}/completed''

.github/workflows/matrix_multi_build_and_release_customs_tags.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ on:
1818
type: choice
1919
options: ["1", "2", "3", "4", "5", "6", "7", "8", "9"]
2020

21+
permissions:
22+
id-token: write
23+
contents: read
24+
attestations: write
25+
2126
concurrency:
2227
group: ${{ github.workflow }}-${{ github.ref }}
2328
cancel-in-progress: true
@@ -155,6 +160,12 @@ jobs:
155160
if: env.disable_qt5 != 'yes' # When qBittorrent v5 is released, remove this
156161
run: docker exec -w /root/${{ env.qbt_build_dir }}/completed multiarch mv -f qbittorrent-nox ${{ matrix.qbt_cross_name }}-${{ matrix.qbt_qt_version_name }}qbittorrent-nox
157162

163+
- name: Generate artifact attestation ${{ github.event.inputs.distinct_id }}
164+
if: env.disable_qt5 != 'yes' # When qBittorrent v5 is released, remove this
165+
uses: actions/attest-build-provenance@v1
166+
with:
167+
subject-path: "${{ env.qbt_build_dir }}/completed/${{ matrix.qbt_cross_name }}-${{ matrix.qbt_qt_version_name }}qbittorrent-nox"
168+
158169
- name: Docker - Release Info
159170
if: env.disable_qt5 != 'yes' # When qBittorrent v5 is released, remove this
160171
run: docker exec -w /root/${{ env.qbt_build_dir }}/release_info multiarch bash -c 'mv *.md *.json '/root/${{ env.qbt_build_dir }}/completed''

.github/workflows/matrix_multi_build_and_release_qbt_workflow_files_debug.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ on:
1818
type: choice
1919
options: ["1", "2", "3", "4", "5", "6", "7", "8", "9"]
2020

21+
permissions:
22+
id-token: write
23+
contents: read
24+
attestations: write
25+
2126
concurrency:
2227
group: ${{ github.workflow }}-${{ github.ref }}
2328
cancel-in-progress: true
@@ -147,6 +152,12 @@ jobs:
147152
if: env.disable_qt5 != 'yes' # When qBittorrent v5 is released, remove this
148153
run: docker exec -w /root/${{ env.qbt_build_dir }}/completed multiarch mv -f qbittorrent-nox ${{ matrix.qbt_cross_name }}-${{ matrix.qbt_qt_version_name }}qbittorrent-nox
149154

155+
- name: Generate artifact attestation ${{ github.event.inputs.distinct_id }}
156+
if: env.disable_qt5 != 'yes' # When qBittorrent v5 is released, remove this
157+
uses: actions/attest-build-provenance@v1
158+
with:
159+
subject-path: "${{ env.qbt_build_dir }}/completed/${{ matrix.qbt_cross_name }}-${{ matrix.qbt_qt_version_name }}qbittorrent-nox"
160+
150161
- name: Docker - Release Info ${{ github.event.inputs.distinct_id }}
151162
if: env.disable_qt5 != 'yes' # When qBittorrent v5 is released, remove this
152163
run: docker exec -w /root/${{ env.qbt_build_dir }}/release_info multiarch bash -c 'mv *.md *.json '/root/${{ env.qbt_build_dir }}/completed''

0 commit comments

Comments
 (0)