Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): tweak docgen event #3066

Merged
merged 1 commit into from
May 25, 2024

Conversation

jamestrew
Copy link
Contributor

Change pull_request -> pull_request_target

This should allow forks of non-members to generate docs with the docgen workflow.
Unlike the pull_request event which only grants read access to GITHUB_TOKEN, pull_request_target grants read/write. This should still be safe as unlike pull_request, pull_request_target runs in the context of the base of the pull request rather than the pull request itself. So someone can't update docgen.yml to something malicious in the PR and have that docgen workflow run.

@jamestrew jamestrew merged commit c2ce039 into nvim-telescope:master May 25, 2024
8 checks passed
@jamestrew jamestrew deleted the docgen-target branch May 25, 2024 01:19
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.

None yet

1 participant