From c6747408892402ade31d0347eac42dc5374a91e5 Mon Sep 17 00:00:00 2001 From: Corvus400 <13657682+Corvus400@users.noreply.github.com> Date: Mon, 18 May 2026 01:40:35 +0900 Subject: [PATCH 1/4] =?UTF-8?q?docs:=20README=E3=81=8B=E3=82=89=E5=85=AC?= =?UTF-8?q?=E9=96=8B=E5=89=8D=E7=A2=BA=E8=AA=8D=E3=81=AE=E8=A8=98=E8=BF=B0?= =?UTF-8?q?=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 40 ------------------------------- scripts/public-readiness-check.sh | 2 -- 2 files changed, 42 deletions(-) diff --git a/README.md b/README.md index ac04dc4..40353e1 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,6 @@ [![License](https://img.shields.io/github/license/Corvus400/specification)](./LICENSE) [![Documentation](https://img.shields.io/badge/docs-specification-555555)](./) -ポートフォリオリポジトリのため外部 PR、一般的なサポート依頼、機能要望、通常のバグ報告は受け付けません。Issue は公開リポジトリ運用上の衛生報告のために限定的に有効化します。 - --- ## DISCLAIMER @@ -28,7 +26,6 @@ Some specifications in this repository describe FICTIONAL drug, disease, and cli - **仕様書を実装から分離** — アプリや関連サービスから参照する仕様・設計メモを独立管理 - **アプリ単位で仕様を整理** — プロジェクトごとにディレクトリを分け、画面仕様、データモデル、API 契約、永続化スキーマを配置 - **契約ファイルを同梱** — OpenAPI など、実装側が参照する machine-readable な契約も必要に応じて保管 -- **公開前 hygiene を重視** — ローカル絶対パス、個人情報、秘密情報、AI transcript 痕跡を監査する script と CI を用意 - **ポートフォリオ向けの短い説明構成** — README は参照実装リポジトリと同じ流れで、初見でも役割が分かる構成に統一 --- @@ -51,43 +48,6 @@ Some specifications in this repository describe FICTIONAL drug, disease, and cli --- -## 開発 - -このリポジトリは仕様書中心のため、アプリケーションの build step はありません。公開前のローカル確認は次を実行します。 - -```bash -scripts/public-readiness-check.sh -gitleaks detect --source . --redact --no-banner -git diff --check -``` - -JSON を変更した場合は、対象ファイルを parser で確認してください。 - -```bash -python3 -m json.tool fictional-drug-and-disease-ref/openapi.json >/dev/null -``` - ---- - -## リポジトリ運用 - -- 外部からの Pull Request はレビュー対象外です。 -- 一般的なサポート・機能要望・通常のバグ報告は GitHub Issues では受け付けていません。 -- 公開 Issue は repository hygiene report のみに限定し、秘密情報・個人情報・脆弱性詳細を投稿しない導線にしています。 -- GitHub Actions と workflow 依存の更新は selected actions と SHA pinning を維持したまま手動レビューで適用します。 -- セキュリティ報告は [SECURITY.md](./SECURITY.md) の手順に従ってください。 - ---- - -## セキュリティ / 公開前確認 - -- Git author / committer email は GitHub noreply に統一しています。 -- tracked tree、Git 履歴、GitHub Issue / Pull Request / コメントに対して、秘密情報・ローカル絶対パス・個人メールの混入を確認します。 -- README 用画像はリポジトリ内の `assets/readme/` に配置し、外部の一時 URL やローカルパスには依存しません。 -- 公開後は GitHub secret scanning / push protection / Dependabot security updates の有効化状態を確認します。 - ---- - ## ライセンス 本プロジェクトは [MIT License](./LICENSE) で公開しています。 diff --git a/scripts/public-readiness-check.sh b/scripts/public-readiness-check.sh index 55195ff..1439bf7 100755 --- a/scripts/public-readiness-check.sh +++ b/scripts/public-readiness-check.sh @@ -58,8 +58,6 @@ required_readme_sections=( '## 主な特徴' '## 仕様の置き場所' '## 現在の関連リポジトリ' - '## リポジトリ運用' - '## セキュリティ / 公開前確認' '## ライセンス' ) From dac0b7f630d3a0850b871621f677dc581b458732 Mon Sep 17 00:00:00 2001 From: Corvus400 <13657682+Corvus400@users.noreply.github.com> Date: Mon, 18 May 2026 01:40:35 +0900 Subject: [PATCH 2/4] =?UTF-8?q?docs:=20README=E3=81=8B=E3=82=89=E5=85=AC?= =?UTF-8?q?=E9=96=8B=E5=89=8D=E7=A2=BA=E8=AA=8D=E3=81=AE=E8=A8=98=E8=BF=B0?= =?UTF-8?q?=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 40 ------------------------------- scripts/public-readiness-check.sh | 26 ++++++++++++++++---- 2 files changed, 22 insertions(+), 44 deletions(-) diff --git a/README.md b/README.md index ac04dc4..40353e1 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,6 @@ [![License](https://img.shields.io/github/license/Corvus400/specification)](./LICENSE) [![Documentation](https://img.shields.io/badge/docs-specification-555555)](./) -ポートフォリオリポジトリのため外部 PR、一般的なサポート依頼、機能要望、通常のバグ報告は受け付けません。Issue は公開リポジトリ運用上の衛生報告のために限定的に有効化します。 - --- ## DISCLAIMER @@ -28,7 +26,6 @@ Some specifications in this repository describe FICTIONAL drug, disease, and cli - **仕様書を実装から分離** — アプリや関連サービスから参照する仕様・設計メモを独立管理 - **アプリ単位で仕様を整理** — プロジェクトごとにディレクトリを分け、画面仕様、データモデル、API 契約、永続化スキーマを配置 - **契約ファイルを同梱** — OpenAPI など、実装側が参照する machine-readable な契約も必要に応じて保管 -- **公開前 hygiene を重視** — ローカル絶対パス、個人情報、秘密情報、AI transcript 痕跡を監査する script と CI を用意 - **ポートフォリオ向けの短い説明構成** — README は参照実装リポジトリと同じ流れで、初見でも役割が分かる構成に統一 --- @@ -51,43 +48,6 @@ Some specifications in this repository describe FICTIONAL drug, disease, and cli --- -## 開発 - -このリポジトリは仕様書中心のため、アプリケーションの build step はありません。公開前のローカル確認は次を実行します。 - -```bash -scripts/public-readiness-check.sh -gitleaks detect --source . --redact --no-banner -git diff --check -``` - -JSON を変更した場合は、対象ファイルを parser で確認してください。 - -```bash -python3 -m json.tool fictional-drug-and-disease-ref/openapi.json >/dev/null -``` - ---- - -## リポジトリ運用 - -- 外部からの Pull Request はレビュー対象外です。 -- 一般的なサポート・機能要望・通常のバグ報告は GitHub Issues では受け付けていません。 -- 公開 Issue は repository hygiene report のみに限定し、秘密情報・個人情報・脆弱性詳細を投稿しない導線にしています。 -- GitHub Actions と workflow 依存の更新は selected actions と SHA pinning を維持したまま手動レビューで適用します。 -- セキュリティ報告は [SECURITY.md](./SECURITY.md) の手順に従ってください。 - ---- - -## セキュリティ / 公開前確認 - -- Git author / committer email は GitHub noreply に統一しています。 -- tracked tree、Git 履歴、GitHub Issue / Pull Request / コメントに対して、秘密情報・ローカル絶対パス・個人メールの混入を確認します。 -- README 用画像はリポジトリ内の `assets/readme/` に配置し、外部の一時 URL やローカルパスには依存しません。 -- 公開後は GitHub secret scanning / push protection / Dependabot security updates の有効化状態を確認します。 - ---- - ## ライセンス 本プロジェクトは [MIT License](./LICENSE) で公開しています。 diff --git a/scripts/public-readiness-check.sh b/scripts/public-readiness-check.sh index 55195ff..30909cb 100755 --- a/scripts/public-readiness-check.sh +++ b/scripts/public-readiness-check.sh @@ -8,12 +8,32 @@ check_absent() { local pattern="$2" shift 2 - if rg -n -I --hidden --glob '!.git/**' --glob '!scripts/public-readiness-check.sh' "$pattern" "$@"; then + if command -v rg >/dev/null 2>&1; then + if rg -n -I --hidden --glob '!.git/**' --glob '!scripts/public-readiness-check.sh' "$pattern" "$@"; then + echo "public-readiness-check: found ${label}" >&2 + failures=$((failures + 1)) + fi + return + fi + + if grep -R -E -n -I --exclude-dir=.git --exclude=public-readiness-check.sh "$pattern" "$@"; then echo "public-readiness-check: found ${label}" >&2 failures=$((failures + 1)) fi } +contains_fixed_string() { + local pattern="$1" + local file="$2" + + if command -v rg >/dev/null 2>&1; then + rg -q --fixed-strings "$pattern" "$file" + return + fi + + grep -F -q "$pattern" "$file" +} + mac_users='/(Us''ers|home)/[A-Za-z0-9_.-]+' win_users='[A-Z]:\\Us''ers\\[A-Za-z0-9_.-]+' local_path_pattern="${mac_users}|${win_users}" @@ -58,13 +78,11 @@ required_readme_sections=( '## 主な特徴' '## 仕様の置き場所' '## 現在の関連リポジトリ' - '## リポジトリ運用' - '## セキュリティ / 公開前確認' '## ライセンス' ) for section in "${required_readme_sections[@]}"; do - if ! rg -q --fixed-strings "$section" README.md; then + if ! contains_fixed_string "$section" README.md; then echo "public-readiness-check: README is missing section: $section" >&2 failures=$((failures + 1)) fi From c1f71852dae3ff36ebd78a89898728651bef78d9 Mon Sep 17 00:00:00 2001 From: Corvus400 <13657682+Corvus400@users.noreply.github.com> Date: Mon, 18 May 2026 01:45:21 +0900 Subject: [PATCH 3/4] =?UTF-8?q?docs:=20README=E3=81=AE=E5=BF=85=E8=A6=81?= =?UTF-8?q?=E3=81=AA=E6=A1=88=E5=86=85=E3=82=92=E5=BE=A9=E5=85=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 19 +++++++++++++++++++ scripts/public-readiness-check.sh | 2 ++ 2 files changed, 21 insertions(+) diff --git a/README.md b/README.md index 40353e1..dba6a3c 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,25 @@ Some specifications in this repository describe FICTIONAL drug, disease, and cli --- +## 開発 + +このリポジトリは仕様書中心のため、アプリケーションの build step はありません。 + +JSON を変更した場合は、対象ファイルを parser で確認してください。 + +```bash +python3 -m json.tool fictional-drug-and-disease-ref/openapi.json >/dev/null +``` + +--- + +## リポジトリ運用 + +- 外部からの Pull Request はレビュー対象外です。 +- 一般的なサポート・機能要望・通常のバグ報告は GitHub Issues では受け付けていません。 + +--- + ## ライセンス 本プロジェクトは [MIT License](./LICENSE) で公開しています。 diff --git a/scripts/public-readiness-check.sh b/scripts/public-readiness-check.sh index 30909cb..cc4d35a 100755 --- a/scripts/public-readiness-check.sh +++ b/scripts/public-readiness-check.sh @@ -78,6 +78,8 @@ required_readme_sections=( '## 主な特徴' '## 仕様の置き場所' '## 現在の関連リポジトリ' + '## 開発' + '## リポジトリ運用' '## ライセンス' ) From 5d6e653f81c5329014b27b52e7189ffbb12f9b4c Mon Sep 17 00:00:00 2001 From: Corvus400 <13657682+Corvus400@users.noreply.github.com> Date: Mon, 18 May 2026 01:49:22 +0900 Subject: [PATCH 4/4] =?UTF-8?q?docs:=20README=E3=81=AE=E5=85=AC=E9=96=8B?= =?UTF-8?q?=E5=90=91=E3=81=91=E9=81=8B=E7=94=A8=E6=A1=88=E5=86=85=E3=82=92?= =?UTF-8?q?=E5=BE=A9=E5=85=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index dba6a3c..5dcf302 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,8 @@ [![License](https://img.shields.io/github/license/Corvus400/specification)](./LICENSE) [![Documentation](https://img.shields.io/badge/docs-specification-555555)](./) +ポートフォリオリポジトリのため外部 PR、一般的なサポート依頼、機能要望、通常のバグ報告は受け付けません。Issue は公開リポジトリ運用上の衛生報告のために限定的に有効化します。 + --- ## DISCLAIMER @@ -64,6 +66,9 @@ python3 -m json.tool fictional-drug-and-disease-ref/openapi.json >/dev/null - 外部からの Pull Request はレビュー対象外です。 - 一般的なサポート・機能要望・通常のバグ報告は GitHub Issues では受け付けていません。 +- 公開 Issue は repository hygiene report のみに限定し、秘密情報・個人情報・脆弱性詳細を投稿しない導線にしています。 +- GitHub Actions と workflow 依存の更新は selected actions と SHA pinning を維持したまま手動レビューで適用します。 +- セキュリティ報告は [SECURITY.md](./SECURITY.md) の手順に従ってください。 ---