diff --git a/.codex/devcontainer-recommendations.md b/.codex/devcontainer-recommendations.md index 9cbf0079..0ec9c09b 100644 --- a/.codex/devcontainer-recommendations.md +++ b/.codex/devcontainer-recommendations.md @@ -290,6 +290,7 @@ pnpmを使用する場合、以下の2つの設定方法があります: ``` **利点**: + - pnpmバージョン管理が明確 - node Featureとの依存関係を分離 - 最新のpnpm機能を即座に利用可能 @@ -321,6 +322,36 @@ pnpmを使用する場合、以下の2つの設定方法があります: - 利用率: 75% (6/8) - 必須ケース: Supabase使用プロジェクト全般 +### Deno Runtime(Edge Functions開発) + +```json +{ + "ghcr.io/devcontainers-community/features/deno:1": {} +} +``` + +**バージョン**: 1 (最新のメジャーバージョン) + +**利点**: + +- **TypeScriptファーストサポート**: 設定不要でTypeScriptを直接実行可能 +- **Supabase Edge Functions対応**: Supabase Edge Functionsの開発環境として必須 +- **組み込みツールチェーン**: `deno fmt`(フォーマッター)、`deno lint`(リンター)、`deno test`(テストランナー)が標準搭載 +- **セキュアデフォルト**: 権限システムによりファイルシステムやネットワークアクセスを明示的に許可 +- **モダンエコシステム**: JSR (JavaScript Registry) との統合 + +**必須ケース**: + +- Supabase Edge Functionsの開発 +- DenoベースのWebアプリケーション +- TypeScript/JavaScriptのモダンランタイム環境が必要な場合 + +**参考リンク**: + +- [Deno DevContainer Feature](https://github.com/devcontainers-community/features/tree/main/src/deno) +- [Deno公式ドキュメント](https://deno.com/) +- [Supabase Edge Functions](https://supabase.com/docs/guides/functions) + ### E2Eテスト環境 ```json diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 7f646397..42ac80af 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -56,8 +56,7 @@ RUN CLAUDE_CODE_VERSION=$(node -pe "require('/tmp/npm-global.json').dependencies typescript \ typescript-language-server \ @anthropic-ai/claude-code@${CLAUDE_CODE_VERSION} \ - @openai/codex@${CODEX_VERSION} \ - vercel + @openai/codex@${CODEX_VERSION} USER vscode RUN bash -lc "cargo install similarity-ts" || true \ diff --git a/.devcontainer/claude-settings.json b/.devcontainer/claude-settings.json index 6efa360b..a95ed7ba 100644 --- a/.devcontainer/claude-settings.json +++ b/.devcontainer/claude-settings.json @@ -245,8 +245,6 @@ "Bash(gcloud container clusters:*)", "Bash(gcloud container clusters get-credentials:*)", "Bash(gcloud compute machine-types describe:*)", - "Bash(vercel:*)", - "Bash(vercel env:*)", "Bash(wscat:*)", "Bash(openssl rand:*)", "Bash(uv run:*)", diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index be1ba75a..c679897e 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -18,7 +18,8 @@ "helm": "none", "minikube": "none" }, - "ghcr.io/dhoeric/features/act:1": {} + "ghcr.io/dhoeric/features/act:1": {}, + "ghcr.io/devcontainers-community/features/deno:1": {} }, "remoteEnv": { "HOMEBREW_NO_AUTO_UPDATE": "1", diff --git a/.github/workflows/container-security.yml b/.github/workflows/container-security.yml index 2b9ba6c9..7dcee468 100644 --- a/.github/workflows/container-security.yml +++ b/.github/workflows/container-security.yml @@ -29,6 +29,20 @@ jobs: security-events: write steps: + - name: Free disk space before scan + run: | + echo "=== Disk space before cleanup ===" + df -h + + docker system prune -af --volumes + sudo rm -rf /usr/local/lib/android || true + sudo rm -rf /usr/share/dotnet || true + sudo rm -rf /opt/ghc || true + sudo rm -rf /usr/local/share/boost || true + + echo "=== Disk space after cleanup ===" + df -h + - name: Checkout repository uses: actions/checkout@v4 @@ -86,6 +100,20 @@ jobs: packages: read steps: + - name: Free disk space before SBOM generation + run: | + echo "=== Disk space before cleanup ===" + df -h + + docker system prune -af --volumes + sudo rm -rf /usr/local/lib/android || true + sudo rm -rf /usr/share/dotnet || true + sudo rm -rf /opt/ghc || true + sudo rm -rf /usr/local/share/boost || true + + echo "=== Disk space after cleanup ===" + df -h + - name: Checkout repository uses: actions/checkout@v4