Skip to content

Stabilize release-signing job by removing setup-time action resolution dependencies#18

Closed
psachs with Copilot wants to merge 5 commits into
mainfrom
copilot/fix-github-actions-job-sign-distribution
Closed

Stabilize release-signing job by removing setup-time action resolution dependencies#18
psachs with Copilot wants to merge 5 commits into
mainfrom
copilot/fix-github-actions-job-sign-distribution

Conversation

Copilot AI commented Jul 13, 2026

Copy link
Copy Markdown

The github-release job in publish.yml failed before step execution (Set up job) due to transient GitHub Action metadata resolution errors (Service Unavailable). This change removes third-party uses: dependencies from that job’s critical path while preserving release signing and asset upload behavior.

  • Root cause addressed

    • Sign Python distribution and upload it as GitHub Release depended on external action download during job setup, which is where the run failed.
  • Workflow hardening in github-release

    • Replaced actions/download-artifact with gh run download to fetch python-package-distributions.
    • Replaced sigstore/gh-action-sigstore-python with direct sigstore CLI installation + invocation.
    • Added actions: read permission required by gh run download.
  • Signing logic robustness

    • Discover artifacts via find (*.tar.gz, *.whl) instead of relying on glob expansion behavior.
    • Added explicit empty-artifact guard and per-file signing log output.
- name: Download artifacts
  run: |
    gh run download \
      '${{ github.run_id }}' \
      --name python-package-distributions \
      --dir dist/ \
      --repo '${{ github.repository }}'

- name: Sign the dists with Sigstore
  run: |
    mapfile -t files < <(find ./dist -maxdepth 1 -type f \( -name '*.tar.gz' -o -name '*.whl' \) | sort)
    for file in "${files[@]}"; do
      python3 -m sigstore sign "${file}"
    done

Copilot AI changed the title [WIP] Fix the failing GitHub Actions job for signing and uploading Stabilize release-signing job by removing setup-time action resolution dependencies Jul 13, 2026
Copilot AI requested a review from psachs July 13, 2026 13:31
@psachs psachs closed this Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants