prompt-injection-check を全 PR 起動・2 層スキャンに改修#24
Merged
Conversation
- paths フィルタを撤廃し全 PR で起動。必須チェックがスキップで Pending のまま残り PR をブロックする問題を解消 - 構造走査(zero-width / bidi 等の不可視 Unicode)を全テキスト ファイルに拡大。SVG・llms.txt・Markdown も対象に - キーワード走査(data-ai-* / <template> / JSON-LD 等)は誤検知を 避けて HTML/CSS/JS/SVG に限定 - display:none / visibility:hidden はインライン style 属性のみ対象 (stylesheet の正当な利用は弾かない) - injection コメント検出を命令フレーズ限定に厳格化 - pi-allow マーカーによる可視の行単位 opt-out を追加 No-Issue: CI 設定の不具合修正とスキャン範囲の適正化
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.
概要
prompt-injection-check.ymlを改修し、(1) 必須チェックのデッドロック解消、(2) 誤検知の削減を行う。直す問題
paths: html/css/jsフィルタ付き。.md/.gitignoreだけの PR ではジョブが起動せず、必須チェック "Scan PR for hidden AI-readable content" が永久に来ない → マージ不能(実例: PR dist/ を .gitignore に追加 #17, プロジェクト運営方針 STRATEGY.md を公開 #23)display:noneをあらゆる行で検出、HTML コメント内の "AI"/"Claude" 等の単純な単語言及でも fail改修内容
on: pull_request(paths フィルタ撤廃) — 全 PR でジョブが走る。検出が無ければ Success を返すので必須チェックとして機能するdata-ai-*/<template>/ JSON-LD / インライン style 属性内のdisplay:none等。HTML/CSS/JS/SVG のみ対象pi-allow: <理由>を可視で書いた行は除外(opt-out)補足
破損していた PR #21 を置き換える(あちらは Web UI 貼り付けでインデントが崩れ無効な YAML)。
No-Issue: 必須チェックのデッドロック解消と誤検知削減
🤖 Generated with Claude Code