Skip to content

Add PEP 740 attestations to PyPI publishing workflow#144

Merged
chrisguidry merged 2 commits intomainfrom
pep740-attestations
Jun 24, 2025
Merged

Add PEP 740 attestations to PyPI publishing workflow#144
chrisguidry merged 2 commits intomainfrom
pep740-attestations

Conversation

@chrisguidry
Copy link
Owner

@chrisguidry chrisguidry commented Jun 24, 2025

Summary

  • Closes PEP 740 attestations for pydocket releases #132 by adding PEP 740 attestations to PyPI releases
  • Switches from uv publish to pypa/gh-action-pypi-publish for built-in attestation support
  • Adds PyPI environment configuration for proper trusted publishing setup

Security Benefits

  • Automatic generation of cryptographically signed attestations for all releases
  • Provides verifiable link between published packages and source repository
  • Uses GitHub's OIDC token for trusted publishing and attestation signing

Test Plan

  • Create a test release to verify attestations are generated correctly
  • Confirm attestations appear on PyPI package page
  • Validate workflow runs successfully with new configuration

🤖 Generated with Claude Code

Implements issue #132 by adding cryptographically signed attestations to
all published releases. Changes include:

- Switch from uv publish to pypa/gh-action-pypi-publish for attestation support
- Add PyPI environment configuration for trusted publishing
- Automatic generation of PEP 740-compliant attestations using GitHub OIDC

This enhances supply chain security by providing verifiable links between
published packages and their source repository.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions
Copy link

github-actions bot commented Jun 24, 2025

📚 Documentation has been built for this PR!

You can download the documentation directly here:
https://github.com/chrisguidry/docket/actions/runs/15862641968/artifacts/3396503697

@codecov-commenter
Copy link

codecov-commenter commented Jun 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (51123de) to head (75674f0).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##              main      #144   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           28        28           
  Lines         3570      3570           
  Branches       191       191           
=========================================
  Hits          3570      3570           
Flag Coverage Δ
python-3.12 100.00% <ø> (ø)
python-3.13 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@chrisguidry chrisguidry merged commit 8892251 into main Jun 24, 2025
16 checks passed
@chrisguidry chrisguidry deleted the pep740-attestations branch June 24, 2025 22:17
chrisguidry added a commit that referenced this pull request Jun 25, 2025
## Summary
- Closes #132 by adding PEP 740 attestations to PyPI releases
- Switches from `uv publish` to `pypa/gh-action-pypi-publish` for
built-in attestation support
- Adds PyPI environment configuration for proper trusted publishing
setup

## Security Benefits
- Automatic generation of cryptographically signed attestations for all
releases
- Provides verifiable link between published packages and source
repository
- Uses GitHub's OIDC token for trusted publishing and attestation
signing

## Test Plan
- [ ] Create a test release to verify attestations are generated
correctly
- [ ] Confirm attestations appear on PyPI package page
- [ ] Validate workflow runs successfully with new configuration

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Claude <noreply@anthropic.com>
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.

PEP 740 attestations for pydocket releases

2 participants