Skip to content

GRAL-6005 replace pull_request_target with pull_request - #743

Merged
siirimangus merged 1 commit into
masterfrom
GRAL-6005
Aug 26, 2026
Merged

GRAL-6005 replace pull_request_target with pull_request#743
siirimangus merged 1 commit into
masterfrom
GRAL-6005

Conversation

@siirimangus

@siirimangus siirimangus commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Jira: https://pipedrive.atlassian.net/browse/GRAL-6005

Summary

Replaces the pull_request_target trigger with pull_request in two GitHub Actions workflows, per a suggestion raised in #devops-public.

  • on-commit.yml: was using pull_request_target with no ref override on checkout, so it always tested master instead of the PR's actual changes. It doesn't use any secrets, so there's no reason for the elevated trigger. Switching to pull_request fixes both issues — it removes unneeded secret/write-token exposure and makes checkout default to the PR's merge commit.
  • on-pd-bot-pr-opened.yml: was using pull_request_target, gated on github.actor == 'pipedrive-bot' (same-repo bot PRs only). pull_request works identically for this case and removes the theoretical risk of fork PRs executing code if the actor check is ever bypassed.

@siirimangus
siirimangus merged commit 5a2831e into master Aug 26, 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