Repository navigation
fix: untrusted-checkoutの誤検知を回避するためignoreコメントを追加 - #281
Open
ichikakurata wants to merge 2 commits into
Open
ichikakurata wants to merge 2 commits into
ichikakurata wants to merge 2 commits into
Conversation
Contributor
|
@ichikakurata ありがとうございます。無視する対象行にコメントを追加すべきですかね。。?今は改行してコメント追加されています。 |
Author
|
@shmpwk ご確認ありがとうございます! |
shmpwk
approved these changes
Oct 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
社内のセキュリティ監査にて、当リポジトリの以下のワークフローに
untrusted-checkoutの警告が検出されたための対応です。▼ 対象ファイル
.github/workflows/clang-tidy-pr-comments.yaml※ 用語の補足
Tier4社内の GitHub Actions セキュリティ設定基準のチェックです。
強い権限で外部PRのコードを取得する際に出る警告です。取得したコードが実行されると、情報漏洩や改ざんの危険があるため検出されます。
原因と対応方針
対象ジョブはPR側のコードを取得していますが、用途は「Linter(clang-tidy)の実行用」に限定されており、取得したコードの実行(ビルドやテスト等)は伴いません。
悪意あるプログラムが実行されるリスクはない(誤検知である)ため、ガイドラインに従い対象行の末尾に ignore コメント(
# zizmor: ignore[untrusted-checkout])を追記し、警告を回避しました。