From 51fc6cecaa410a6ec95d131c34efb97e4e48b4d6 Mon Sep 17 00:00:00 2001 From: Jazz Turner-Baggs <473256+jazzz@users.noreply.github.com> Date: Thu, 24 Jul 2025 17:00:30 -0700 Subject: [PATCH 1/2] Add default Claude action --- .github/workflows/claude-code.yml | 19 +++++++++++++++++++ CLAUDE.md | 3 +++ 2 files changed, 22 insertions(+) create mode 100644 .github/workflows/claude-code.yml create mode 100644 CLAUDE.md diff --git a/.github/workflows/claude-code.yml b/.github/workflows/claude-code.yml new file mode 100644 index 0000000..8f65ed9 --- /dev/null +++ b/.github/workflows/claude-code.yml @@ -0,0 +1,19 @@ +name: Claude Code Review + +on: + issue_comment: + types: [created] + pull_request: + types: [opened, synchronize] + +jobs: + claude: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: anthropics/claude-code-action@beta + with: + anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} + experimental_allowed_domains: | + .github.com + .githubusercontent.com \ No newline at end of file diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..f256104 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,3 @@ +# CLAUDE.md +Please review code for clarity, maintainability, and correctness. Suggest improvements without rewriting unless necessary. +Avoid nitpicks unless they impact understanding. \ No newline at end of file From c91446ecfa2f0f118513cbdfc7864b20f72ca7ad Mon Sep 17 00:00:00 2001 From: Jazz Turner-Baggs <473256+jazzz@users.noreply.github.com> Date: Thu, 24 Jul 2025 17:03:27 -0700 Subject: [PATCH 2/2] Add oidc token permission --- .github/workflows/claude-code.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/claude-code.yml b/.github/workflows/claude-code.yml index 8f65ed9..745f186 100644 --- a/.github/workflows/claude-code.yml +++ b/.github/workflows/claude-code.yml @@ -6,6 +6,10 @@ on: pull_request: types: [opened, synchronize] +permissions: + contents: read + id-token: write + jobs: claude: runs-on: ubuntu-latest