Skip to content

Add ci action for package build and pypi upload#28

Merged
leifdenby merged 2 commits into
mlwp-tools:mainfrom
leifdenby:maint/package-build-and-pypi-upload-ci-action
Jun 9, 2026
Merged

Add ci action for package build and pypi upload#28
leifdenby merged 2 commits into
mlwp-tools:mainfrom
leifdenby:maint/package-build-and-pypi-upload-ci-action

Conversation

@leifdenby

Copy link
Copy Markdown
Member

Adds github ci action that will build a package wheel for releases created on github and upload to pypi.org using Trusted Publisher based authentication. This is currently set up under my pypi.org account, but we could eventually apply for a organisation on pypi.org and I can transfer the ownership of the project on pypi.org to that organisation (that is what we did for MLCast, but the organisation took about a month to get approval).

@observingClouds observingClouds left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I do not feel too strongly about my comments, so feel free to acts as you like

Comment on lines +45 to +48
# Requires PyPI Trusted Publishing to be configured for this GitHub
# repository/workflow/environment on pypi.org. The `id-token: write`
# permission above lets this action request an OIDC token, in place of a
# PYPI_TOKEN repository secret.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would personally remove this comment

@@ -0,0 +1,49 @@
### CI actions are pinned to immutable commit hashes, not mutable tags, to reduce supply-chain risk and help prevent LLM-based CI attacks. See https://github.com/lirantal/pypi-security-best-practices#13-secure-your-cicd-release-pipeline.

@observingClouds observingClouds Jun 9, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Now we know why there are hashes, but I don't think this needs to be stated here.

@leifdenby

Copy link
Copy Markdown
Member Author

Thanks @observingClouds :) I am going to leave both comments in because I am likely to forgot myself I think, and also I think is quite unusual still to use hashes rather than tags, and the trusted publishers thing is still quite new I think

@leifdenby leifdenby merged commit c29bad1 into mlwp-tools:main Jun 9, 2026
2 checks passed
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