Avoiding `pull_request_target` usage in workflows

オープン
#3,864 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
静か
技術スタック
github-actions
領域
ci-cd, security

調査の方向性

.github/workflows/pr-comment.yml の 4 行目から始め、リンクされている checkout の変更と併せて、pull_request_target を安全に使用するための GitHub のガイダンスを読んでください。提案どおりにビルドと投稿の責務を分離し、そのうえで、pull_request_target を使用する workflow がないこと、および両方の必須アクションが引き続き安全に動作することを確認してください。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Python
スター
371
フォーク
413
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

python/python-docs-es のほかの issue

python/python-docs-es の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。