From c35cd351f8f90b8a5341eb72a3e1e26056614fe3 Mon Sep 17 00:00:00 2001 From: Jorge Martinez Date: Wed, 14 Jan 2026 15:20:27 +0100 Subject: [PATCH 1/4] feat: sanitize wheelhouse name --- build-wheelhouse/action.yml | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/build-wheelhouse/action.yml b/build-wheelhouse/action.yml index 7124f0020..674845b8f 100644 --- a/build-wheelhouse/action.yml +++ b/build-wheelhouse/action.yml @@ -346,18 +346,30 @@ runs: echo "Renaming SBOM file..." mv sbom.spdx "${LIBRARY_NAME}-v${LIBRARY_VERSION}-${WHEELHOUSE_TARGET}-${OPERATING_SYSTEM}-${PYTHON_VERSION}-sbom.spdx" + - name: "Sanitize library name" + id: sanitize + run: | + # Replace all hyphens with underscores + SANITIZED_NAME="${{ inputs.library-name }}" + SANITIZED_NAME="${SANITIZED_NAME//-/_}" + echo "sanitized_library_name=${SANITIZED_NAME}" >> "${GITHUB_OUTPUT}" + - name: "Upload the SBOM file" uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 + env: + LIBRARY_NAME: ${{ steps.sanitize.outputs.sanitized_library_name }} with: - name: ${{ inputs.library-name }}-v${{ steps.library-version.outputs.library_version }}-${{ steps.specific-target-requested.outputs.wheelhouse_target }}-${{ inputs.operating-system }}-${{ inputs.python-version }}-sbom - path: ${{ inputs.library-name }}-v${{ steps.library-version.outputs.library_version }}-${{ steps.specific-target-requested.outputs.wheelhouse_target }}-${{ inputs.operating-system }}-${{ inputs.python-version }}-sbom.spdx + name: ${LIBRARY_NAME}-v${{ steps.library-version.outputs.library_version }}-${{ steps.specific-target-requested.outputs.wheelhouse_target }}-${{ inputs.operating-system }}-${{ inputs.python-version }}-sbom + path: ${LIBRARY_NAME}-v${{ steps.library-version.outputs.library_version }}-${{ steps.specific-target-requested.outputs.wheelhouse_target }}-${{ inputs.operating-system }}-${{ inputs.python-version }}-sbom.spdx retention-days: 7 - name: Generate build provenance attestation if: ${{ inputs.attest-provenance == 'true' }} uses: actions/attest-build-provenance@00014ed6ed5efc5b1ab7f7f34a39eb55d41aa4f8 # v3.1.0 + env: + LIBRARY_NAME: ${{ steps.sanitize.outputs.sanitized_library_name }} with: - subject-path: ${{ inputs.library-name }}-v${{ steps.library-version.outputs.library_version }}-${{ steps.specific-target-requested.outputs.wheelhouse_target }}-${{ inputs.operating-system }}-${{ inputs.python-version }}-sbom.spdx + subject-path: ${LIBRARY_NAME}-v${{ steps.library-version.outputs.library_version }}-${{ steps.specific-target-requested.outputs.wheelhouse_target }}-${{ inputs.operating-system }}-${{ inputs.python-version }}-sbom.spdx - name: "Optionally install build and wheel" if: ${{ inputs.install-build-and-wheel == 'true' }} @@ -389,22 +401,28 @@ runs: - name: "Compress the wheelhouse" uses: vimtor/action-zip@1379ea20d4c5705669ba81fd626dd01b1c738f26 # v1.2 + env: + LIBRARY_NAME: ${{ steps.sanitize.outputs.sanitized_library_name }}- with: files: wheelhouse - dest: ${{ inputs.library-name }}-v${{ steps.library-version.outputs.library_version }}-${{ steps.specific-target-requested.outputs.wheelhouse_target }}-${{ inputs.operating-system }}-${{ inputs.python-version }}.zip + dest: "${LIBRARY_NAME}-v${{ steps.library-version.outputs.library_version }}-${{ steps.specific-target-requested.outputs.wheelhouse_target }}-${{ inputs.operating-system }}-${{ inputs.python-version }}.zip" - name: "Upload the compressed wheelhouse" uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 + env: + LIBRARY_NAME: ${{ steps.sanitize.outputs.sanitized_library_name }}- with: - name: ${{ inputs.library-name }}-v${{ steps.library-version.outputs.library_version }}-${{ steps.specific-target-requested.outputs.wheelhouse_target }}-${{ inputs.operating-system }}-${{ inputs.python-version }} - path: ${{ inputs.library-name }}-v${{ steps.library-version.outputs.library_version }}-${{ steps.specific-target-requested.outputs.wheelhouse_target }}-${{ inputs.operating-system }}-${{ inputs.python-version }}.zip + name: "${LIBRARY_NAME}-v${{ steps.library-version.outputs.library_version }}-${{ steps.specific-target-requested.outputs.wheelhouse_target }}-${{ inputs.operating-system }}-${{ inputs.python-version }}" + path: "${LIBRARY_NAME}-v${{ steps.library-version.outputs.library_version }}-${{ steps.specific-target-requested.outputs.wheelhouse_target }}-${{ inputs.operating-system }}-${{ inputs.python-version }}.zip" retention-days: 7 - name: Generate build provenance attestation if: inputs.attest-provenance == 'true' uses: actions/attest-build-provenance@00014ed6ed5efc5b1ab7f7f34a39eb55d41aa4f8 # v3.1.0 + env: + LIBRARY_NAME: ${{ steps.sanitize.outputs.sanitized_library_name }} with: - subject-path: ${{ inputs.library-name }}-v${{ steps.library-version.outputs.library_version }}-${{ steps.specific-target-requested.outputs.wheelhouse_target }}-${{ inputs.operating-system }}-${{ inputs.python-version }}.zip + subject-path: "${LIBRARY_NAME}-v${{ steps.library-version.outputs.library_version }}-${{ steps.specific-target-requested.outputs.wheelhouse_target }}-${{ inputs.operating-system }}-${{ inputs.python-version }}.zip" - name: Check library's dependencies license uses: ansys/actions/check-licenses@main From 83554a67a6e00847ec224d6fb6397c09ccc5cf58 Mon Sep 17 00:00:00 2001 From: Jorge Martinez Date: Wed, 14 Jan 2026 15:47:54 +0100 Subject: [PATCH 2/4] fix: missing shell --- build-wheelhouse/action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/build-wheelhouse/action.yml b/build-wheelhouse/action.yml index 674845b8f..48715ef1e 100644 --- a/build-wheelhouse/action.yml +++ b/build-wheelhouse/action.yml @@ -348,6 +348,7 @@ runs: - name: "Sanitize library name" id: sanitize + shell: bash run: | # Replace all hyphens with underscores SANITIZED_NAME="${{ inputs.library-name }}" From bedd6576eb5245b98a5f0ab146e41eced519ca5b Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Wed, 14 Jan 2026 14:49:32 +0000 Subject: [PATCH 3/4] chore: adding changelog file 1112.added.md [dependabot-skip] --- doc/source/changelog/1112.added.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/source/changelog/1112.added.md diff --git a/doc/source/changelog/1112.added.md b/doc/source/changelog/1112.added.md new file mode 100644 index 000000000..ccb133dc5 --- /dev/null +++ b/doc/source/changelog/1112.added.md @@ -0,0 +1 @@ +Update wheelhouse artifacts names From 78ec90aefa711335b8f0d6d0fa3be56124cceb69 Mon Sep 17 00:00:00 2001 From: Jorge Martinez Date: Mon, 26 Jan 2026 13:19:40 +0100 Subject: [PATCH 4/4] fix: zizmor warnings --- build-wheelhouse/action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build-wheelhouse/action.yml b/build-wheelhouse/action.yml index 48715ef1e..b39ec196a 100644 --- a/build-wheelhouse/action.yml +++ b/build-wheelhouse/action.yml @@ -349,9 +349,11 @@ runs: - name: "Sanitize library name" id: sanitize shell: bash + env: + LIBRARY_NAME: "${{ inputs.library-name }}" run: | # Replace all hyphens with underscores - SANITIZED_NAME="${{ inputs.library-name }}" + SANITIZED_NAME="${LIBRARY_NAME}" SANITIZED_NAME="${SANITIZED_NAME//-/_}" echo "sanitized_library_name=${SANITIZED_NAME}" >> "${GITHUB_OUTPUT}"