Skip to content

Commit

Permalink
Add support to attest Python package via GitHub (#453)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmartin16 committed May 26, 2024
1 parent 20953d6 commit f8e2ff5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ on:
pull_request:
workflow_dispatch:
workflow_call:
inputs:
attest:
description: "Attest the created package using GitHub attestations."
default: "false"
type: string

# cancels running CI if new commit is pushed to branch
concurrency:
Expand Down Expand Up @@ -67,6 +72,10 @@ jobs:
#######
name: Build & Verify Package
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
attestations: write
steps:
- name: Checkout Repo
uses: actions/checkout@v4.1.4
Expand All @@ -75,6 +84,8 @@ jobs:

- name: Build & Upload Package
uses: hynek/build-and-inspect-python-package@v2.5.0
with:
attest-build-provenance-github: ${{ inputs.attest }}

Tests-qBittorrent:
name: Release Test ${{ needs.verify.outputs.python-latest-version }} - ${{ matrix.QBT_VER }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
name: CI
uses: ./.github/workflows/ci.yml
secrets: inherit
with:
attest: "true"

release:
name: Create Release
Expand Down

0 comments on commit f8e2ff5

Please sign in to comment.