Skip to content

Commit

Permalink
Fix: Broken attenstations (#182)
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Watkins <[email protected]>
  • Loading branch information
ModeSevenIndustrialSolutions authored Oct 30, 2024
1 parent 1442e3d commit 24b89cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/actions/python-project-build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,15 @@ runs:
- name: "Artefact attestation [WHL]"
id: attest-whl
if: inputs.attest == 'true'
if: inputs.attest_artefacts == 'true'
uses: actions/attest-build-provenance@v1
with:
# e.g. dist/osc_github_devops-0.0.8.dev1-py3-none-any.whl
subject-path: "${{ steps.artefact-naming.outputs.whl_file }}"

- name: "Artefact attestation [TGZ]"
id: attest-tgz
if: inputs.attest == 'true'
if: inputs.attest_artefacts == 'true'
uses: actions/attest-build-provenance@v1
with:
# e.g. dist/osc_github_devops-0.0.8.tar.gz
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/python-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
description: "Version used to upload/store artefacts for publishing"
required: false
type: string
default: 3.10
default: 3.11
ARTEFACT_LOCATION:
description: "Build artefacts will be output to this folder/directory"
required: false
Expand All @@ -25,7 +25,7 @@ on:
ATTEST_ARTEFACTS:
description: "Attest/sign packages during build"
required: false
type: string
type: boolean
default: true
SIGSTORE_SIGN:
description: "Sign build artefacts with Sigstore"
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:

- name: "Build Python project [ with attestation ]"
id: python-build-attest
if: inputs.ATTEST_ARTEFACTS
if: inputs.ATTEST_ARTEFACTS == 'true'
uses: os-climate/osc-github-devops/.github/actions/python-project-build@main
with:
attest_artefacts: "true"
Expand Down

0 comments on commit 24b89cf

Please sign in to comment.