Skip to content

Signing things #332

@jenstroeger

Description

@jenstroeger

Git allows for signing commits and tags, see also the Signing Your Work chapter. Furthermore, twine upload allows for signing packages when uploading them to a PyPI server.

Related to PR #306 and issue commitizen-tools/commitizen#575, I wanted to keep the discussion going on signing and verifying signatures in an automated workflow. Signing commits and tags not only generated by a local user (who needs to sign commits locally) but also generated by the release.yaml Action

- name: Create changelog and bump
run: cz bump --changelog --yes
- name: Push the release
run: |
git push
git push --tags

and

# - name: Publish to PyPI server
# run: |
# export TWINE_USERNAME=<USERNAME>
# export TWINE_PASSWORD=<PASSWORD>
# export TWINE_REPOSITORY_URL=<REPOSITORY_URL>
# twine upload --verbose dist/*.tar.gz dist/*.whl

Read the linked issue for more information, and take a look at the How to use GPG key in github actions? Also related is issue actions/runner#667.

Metadata

Metadata

Assignees

No one assigned

    Labels

    SLSARelating Supply-chain Levels for Software Artifacts (SLSA)github_actionsPull requests that update Github_actions codesecuritySecurity related features or bugs

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions