Skip to content

feat(attest-for-pypi): add PyPI attestation action#75

Open
xchalle wants to merge 8 commits intomainfrom
feat/attest-for-pypi
Open

feat(attest-for-pypi): add PyPI attestation action#75
xchalle wants to merge 8 commits intomainfrom
feat/attest-for-pypi

Conversation

@xchalle
Copy link
Contributor

@xchalle xchalle commented Jan 21, 2026

This pull request introduces a new GitHub Action, attest-for-pypi, designed to generate PyPI-compatible attestations for Python packages using the Sigstore framework. The action is tailored for integration into CI/CD pipelines and ensures that attestations are only created for public repositories to prevent information leakage. The pull request includes comprehensive documentation, licensing, and the initial implementation of the action.

Key changes include:

New Action Implementation:

  • Added action.yml defining the composite action, which generates attestations for Python distribution files using Sigstore and PyPI's publish attestation marker. The action includes a safety check to ensure it only runs on public repositories and exposes configurable inputs and outputs.

Documentation:

  • Added a detailed README.md explaining the purpose, usage, permissions, example workflows, inputs/outputs, and security considerations for the attest-for-pypi action.
  • Created an initial CHANGELOG.md documenting the first release and key features, such as PyPI-compatible attestations, Sigstore support, and public repo checks.

Licensing:

  • Added an MIT License in LICENSE to clarify usage and distribution rights.

Copilot AI review requested due to automatic review settings January 21, 2026 09:14
@ledger-wiz-cspm-secret-detection
Copy link

ledger-wiz-cspm-secret-detection bot commented Jan 21, 2026

Wiz Scan Summary

Scanner Findings
Data Finding Sensitive Data -
Secret Finding Secrets -
IaC Misconfiguration IaC Misconfigurations 1 Info
SAST Finding SAST Findings -
Software Management Finding Software Management Findings -
Total 1 Info

View scan details in Wiz

To detect these findings earlier in the dev lifecycle, try using Wiz Code VS Code Extension.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request introduces a new GitHub Action for generating PyPI-compatible attestations using Sigstore. The action wraps GitHub's attestation functionality with PyPI-specific configuration and includes a safety check to prevent use on private repositories.

Changes:

  • Added a composite GitHub Action that generates Sigstore attestations with PyPI's predicate type
  • Provided comprehensive documentation covering usage, permissions, and security considerations
  • Included MIT license and initial changelog for version 0.1.0

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
actions/attest-for-pypi/action.yml Implements the composite action with repository visibility checks and attestation generation
actions/attest-for-pypi/README.md Documents the action's purpose, usage examples, inputs/outputs, and security considerations
actions/attest-for-pypi/LICENSE Adds MIT license for the action
actions/attest-for-pypi/CHANGELOG.md Records the initial 0.1.0 release with key features

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings January 21, 2026 09:25
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings January 21, 2026 09:33
xchalle and others added 2 commits January 21, 2026 10:34
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Removed `github_token` and `upload-artifact` inputs from README.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings January 21, 2026 09:36
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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