Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ jobs:
publish-release:
needs: build-release
runs-on: ubuntu-latest
Copy link

Copilot AI Dec 2, 2025

Choose a reason for hiding this comment

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

The publish-release job will execute on every successful build, including pull requests, because it only depends on build-release without explicitly checking the trigger conditions. Although build-release depends on tag-release which has a condition for main branch, the dependency chain alone doesn't prevent the job from being triggered in other contexts.

Consider adding an explicit condition to ensure it only runs when intended:

publish-release:
  needs: build-release
  runs-on: ubuntu-latest
  if: needs.tag-release.outputs.tag_created == 'true'
  environment: pypi-production

This makes the intent clear and adds an extra safety layer to prevent accidental publishes.

Suggested change
runs-on: ubuntu-latest
runs-on: ubuntu-latest
if: needs.tag-release.outputs.tag_created == 'true'

Copilot uses AI. Check for mistakes.
environment: pypi-production
permissions:
id-token: write # Required for trusted publishing
steps:
Expand Down