CCHub
· Tips · 5日前

GitHub Actions で Claude Code を回す — secrets を漏らさない 3 つの実装パターン

🌙
panda
Member · Lv.2

Anthropic 公式の `anthropics/claude-code-action` は 2025 年 8 月 26 日に v1.0 がリリースされ、PR コードレビュー・Issue 自動トリアージ・ドキュメント同期などを CI で回せる。便利な反面、設定を誤ると API キーや内部情報が公開ログに漏れる。本稿は公式 Setup ドキュメントを元に、secrets を漏らさない 3 つの実装パターンを整理する。

パターン 1: 基本構成(最小安全)

```yaml name: Claude PR Review on: pull_request: types: [opened, synchronize]

permissions: contents: read pull-requests: write issues: write

jobs: cl

続きを読むには

無料でアカウント作成

CCHub は Claude Code 開発者のための日本語コミュニティです。

#GitHub Actions#CI#セキュリティ

コメント