Skip to content

Publish with a locked tag-publish in a separate job - #2

Merged
sbrunner merged 1 commit into
masterfrom
publish-separate-job-C2CSEC-185
Nov 3, 2026
Merged

sbrunner merged 1 commit into
masterfrom
publish-separate-job-C2CSEC-185

Conversation

@sbrunner

@sbrunner sbrunner commented Nov 3, 2026

Copy link
Copy Markdown
Member

Summary

Move the publishing to a dedicated job that installs tag-publish from a locked uv project, and reduce the workflow permissions to the minimum.

Context

  • The publishing runs in the CI job with broad permissions and an unlocked tag-publish installation.
  • Part of the publishing migration to tag-publish with OpenID Connect.

Implementation Details

  • Add a .github/publish uv project with a committed lock file and run tag-publish with uv run --locked --isolated --no-build.
  • Move the publishing and the dpkg versions patch to a publish job with contents: write, id-token: write and packages: write only.
  • Gate the publishing job on the success of each CI matrix entry.
  • Remove the unused dispatch configuration and the tag-publish requirement from the CI requirements.

Testing & Validation

  • The publishing job is exercised on this pull request.

Impact/Risks

  • The publishing still requires the HAS_SECRETS secret.

Move the publishing to a dedicated job with minimal permissions, install tag-publish from a locked uv project, and remove the unused dispatch configuration.
@sbrunner sbrunner added the enhancement New feature or request label Nov 3, 2026
@sbrunner
sbrunner merged commit 33c0849 into master Nov 3, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant