Skip to content

Conversation

@vcschapp
Copy link
Collaborator

Description

This change switches the trigger for the Python package version check GitHub Actions workflow from pull_request_target to pull_request. This should result in the paths filter on the workflow working correctly.

Because pull_request_target runs against the base and doesn't work with paths, it's doesn't work for the intended use case. It is more targeted toward protecting workflows from rogue PRs from forks. Such protection isn't needed for this workflow because it doesn't use any secrets, apart from ephemeral ones generated through OIDC flows, and in any event it's protected from fork runs by the if check in check-python-package-versions.yaml on line 11.

Testing

Ongoing, via PR #430.

`pull_request_target` runs against the base and doesn't work with paths,
so it's wrong. It is more targeted toward protecting workflows from
rogue PRs from forks.

This isn't an issue for this workflow because it doesn't use any
secrets, apart from ephemeral ones generated through OIDC flows, and
in any event it's protected from fork runs by the `if` check in
`check-python-package-versions.yaml` on line 11.
@RoelBollens-TomTom RoelBollens-TomTom self-requested a review January 30, 2026 21:01
@vcschapp vcschapp merged commit df4cc38 into dev Jan 30, 2026
2 of 3 checks passed
@vcschapp vcschapp deleted the pypi-publish-check-versions-fix-1 branch January 30, 2026 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants