Skip to content

Updated Detect AI workflow use pull_request_target - #1050

Merged
tomkralidis merged 1 commit into
geopython:masterfrom
doublebyte1:fix-workflow
Oct 22, 2026
Merged

tomkralidis merged 1 commit into
geopython:masterfrom
doublebyte1:fix-workflow

Conversation

@doublebyte1

Copy link
Copy Markdown
Contributor

Workflows triggered by Pull Requests from forks to the upstream repository don't have access to secrets for security reasons. However, workflows triggered by pull_request_target can access secrets. To make them secure, we need to put some safeguards in place by hardening the restrictions and making sure they never checkout or run the PR code. In this case we only access the PR url, to pass it as an argument to the classifier script.

Please checkout this pygeoapi issue on the same topic:
geopython/pygeoapi#2461

Reference:
https://docs.github.com/en/actions/reference/security/securely-using-pull_request_target

@tomkralidis
tomkralidis merged commit 2d29ec1 into geopython:master Oct 22, 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