Skip to content

claude security-audit action dies in ~2-4s on every PR #524

Open

Description

@lroolle

Description

The claude.yml PR security-audit job has failed on every recent PR (#507, #508, #516, #517) — Claude Code installs fine, then the run step exits 1 within ~2-4s with no error output. The bot's own comment says "Claude encountered an error after 2s".

Type

  • Bug fix

Details

Failure is pre-diff: it dies identically on unrelated changes (docs, pins, entrypoint fix), right after settings setup, before any tool call. claude_code_oauth_token is passed and ANTHROPIC_API_KEY is empty in the step env — smells like an expired/revoked CLAUDE_CODE_OAUTH_TOKEN secret. Non-gating today, but a permanently red check trains everyone to ignore it.

Related Files

  • .github/workflows/claude.yml

Test Plan

  • rotate the secret, re-run on any open PR, job goes green or fails with a real finding

Activity

  1. lroolle commented on Aug 5, 2026

    @lroolle
    MemberAuthor

    Housekeeping 2026-08-04: disabled claude.yml (gh workflow disable) so PRs stop carrying a permanently-red check — it has failed identically on every PR since the token broke. Re-enable with gh workflow enable claude.yml after rotating CLAUDE_CODE_OAUTH_TOKEN (human-only step; needs a fresh claude setup-token).

  2. lroolle commented on Sep 2, 2026

    @lroolle
    MemberAuthor

    Checked this while sweeping org automation health. The job is not failing any more — it is off:

    $ gh api repos/thevibeworks/deva/actions/workflows
    Claude Code           disabled_manually   .github/workflows/claude.yml
    Copilot code review   active              dynamic/copilot-pull-request-reviewer/...
    

    Zero Claude Code runs in the last 60 workflow runs; Running Copilot Code Review fired 12 times in the same window. So PR review moved to Copilot and this workflow was switched off, presumably to stop exactly the noise this issue reported.

    Fine as a decision. The part worth fixing is that nothing in the repo says so. claude.yml still sits on main with a full pull_request trigger and a security-audit job. Anyone reading the repo — or an agent reading it — concludes deva runs a Claude security audit on every PR. Only the Actions API knows otherwise, and disabled_manually is invisible in a diff, a clone, or a code search.

    That is the same failure shape as the digest tripwire and the deepseek mirror this sweep also touched: the state that matters is not written where anyone looks.

    Two honest options:

    1. Keep it off — delete claude.yml, or leave the file with the triggers stripped to workflow_dispatch: only and a header comment saying review lives with Copilot now. The repo then tells the truth on its own.
    2. Turn it back on — the original diagnosis in this issue (expired/revoked CLAUDE_CODE_OAUTH_TOKEN, dying in 2-4s pre-diff, no output) still looks right, and it is worth knowing that the same shared token is currently starving every scheduled bot in the org: three pipeline failures today, all "Spending cap reached" / 429, while interactive sessions were running. If it comes back, it wants its own token rather than the shared one.

    Either way this issue's title no longer describes reality. Happy to send the PR for whichever you pick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions