Skip to content

Commit

Permalink
Generate build provenace attestations
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocobo1 committed Jun 4, 2024
1 parent 8aa6c44 commit e22cd79
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/alpha.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
workflow_dispatch: # allow trigger it manually

permissions:
attestations: write
id-token: write
packages: write

jobs:
Expand Down Expand Up @@ -86,6 +88,11 @@ jobs:
name: qbittorrent-nox_alpha_${{ steps.set-variables.outputs.PLATFORM_NAME }}
path: qbittorrent-nox_alpha_${{ steps.set-variables.outputs.PLATFORM_NAME }}

- name: Generate build provenace attestations
uses: actions/attest-build-provenance@v1
with:
subject-path: qbittorrent-nox_alpha_${{ steps.set-variables.outputs.PLATFORM_NAME }}

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: CI

on: [pull_request, push]

permissions: {}
permissions:
attestations: write
id-token: write

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand Down Expand Up @@ -84,3 +86,8 @@ jobs:
with:
name: qbittorrent-nox_devel_${{ steps.set-variables.outputs.PLATFORM_NAME }}
path: qbittorrent-nox_devel_${{ steps.set-variables.outputs.PLATFORM_NAME }}

- name: Generate build provenace attestations
uses: actions/attest-build-provenance@v1
with:
subject-path: qbittorrent-nox_devel_${{ steps.set-variables.outputs.PLATFORM_NAME }}
7 changes: 7 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
workflow_dispatch: # trigger it manually

permissions:
attestations: write
id-token: write
packages: write

env:
Expand Down Expand Up @@ -103,6 +105,11 @@ jobs:
name: qbittorrent-nox_${{ env.QBT_VERSION }}_${{ steps.set-variables.outputs.PLATFORM_NAME }}
path: qbittorrent-nox_${{ env.QBT_VERSION }}_${{ steps.set-variables.outputs.PLATFORM_NAME }}

- name: Generate build provenace attestations
uses: actions/attest-build-provenance@v1
with:
subject-path: qbittorrent-nox_${{ env.QBT_VERSION }}_${{ steps.set-variables.outputs.PLATFORM_NAME }}

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
Expand Down

0 comments on commit e22cd79

Please sign in to comment.