# 管理者用環境構築手順 (Admin Setup)

プロジェクト作成時に一度だけ行う初期設定をまとめる．

## GitHub リポジトリの作成 (Create Repository)

※ 作成済み

## GitHub リポジトリのセキュリティ設定 (Security Settings)

Dependabot alerts（既知脆弱性の検出）と Dependabot security updates（修正 PR の自動作成）はリポジトリごとに既定で OFF のため，`gh` で有効化する（admin 権限が必要．冪等なので再実行してよい）．

※ 2026-09-29 に有効化済み

```bash
gh api -X PUT repos/rintoHasegawa/SmTIAS-Evaluation/vulnerability-alerts
gh api -X PUT repos/rintoHasegawa/SmTIAS-Evaluation/automated-security-fixes

# 検証（前者は 204 なら有効・404 なら無効，後者は "enabled":true なら有効）
gh api repos/rintoHasegawa/SmTIAS-Evaluation/vulnerability-alerts -i
gh api repos/rintoHasegawa/SmTIAS-Evaluation/automated-security-fixes
```

依存パッケージの定期更新 PR（Dependabot version updates）は `.github/dependabot.yml` で設定する（pip・github-actions を週 1 回，マイナー／パッチは 1 PR にまとめる）．Dependabot の PR と alert は `/deps-update` で処理する．

## 設定ファイルの配置 (Configuration Files)

以下のファイルをリポジトリルートに配置する．

| ファイル | 用途 |
| --- | --- |
| `requirements.txt` | 実行時の依存パッケージ |
| `requirements-dev.txt` | 開発用ツール |
| `.gitignore` | Git 管理対象外の定義 |
| `ruff.toml` | Ruff（リンター・フォーマッター）の設定 |
| `pyproject.toml` | プロジェクトメタデータ・pytest 設定 |
| `.github/dependabot.yml` | 依存パッケージの定期更新 PR の設定 |

## 初期ディレクトリの作成 (Create Directories)

```bash
mkdir -p data/smtias/whiteboard data/tias/whiteboard output
```

※ `data/` と `output/` は `.gitignore` で除外するため，空の `.gitkeep` ファイルは不要．
