Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Avoiding `pull_request_target` usage in workflows

Open
#3,864 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
55/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Quiet
Tech stack
github-actions
Domain
ci-cd, security

Research direction

Start with .github/workflows/pr-comment.yml at line 4 and read GitHub's securely using pull_request_target guidance, along with the linked checkout change. Separate the building and posting responsibilities as proposed, then verify that no workflow uses pull_request_target and that both required actions still work safely.

Written by the indexing model from the issue text.

Description

bug github_actions

One of this repositories workflow's uses pull_request_target:

https://github.com/python/python-docs-es/blob/9b99734eefaa1b21480066abc9a336dad45b95cd/.github/workflows/pr-comment.yml#L4

Please see the GitHub documentation for a list of risks associated with the target. I see the workflow is currently quite careful, but IMO it is still better to split it into two, one for building and one for posting.

It is now disallowed by actions/checkout (see blog post). We are also considering disabling it across the organisation (new feature), but it would break this workflow.

Dominant language
Python
Stars
371
Forks
413
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from python/python-docs-es

All issues in python/python-docs-es

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.