Skip to content

ci(py-test): add pull_request_target for fork PR secrets#129

Merged
paylm merged 2 commits into
apitable:developfrom
zoe-icu:fix/py-test-workflow-secrets
Jul 8, 2026
Merged

ci(py-test): add pull_request_target for fork PR secrets#129
paylm merged 2 commits into
apitable:developfrom
zoe-icu:fix/py-test-workflow-secrets

Conversation

@zoe-icu

@zoe-icu zoe-icu commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add pull_request_target trigger to py-test.yml so fork PRs can access repository secrets
  • Keep existing pull_request trigger unchanged
  • Use github.event.pull_request.head.sha || github.sha for checkout to handle both PR and push events

Context

Fork PRs cannot access repo secrets due to GitHub's security policy. pull_request_target runs in the base repo context with secrets available.

Test plan

  • Verify fork PRs now trigger with secrets access
  • Verify push events still work as before

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@paylm paylm merged commit af63511 into apitable:develop Jul 8, 2026
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