Skip to content

Conversation

@david-fraley
Copy link
Collaborator

Summary

  • Adds actions/checkout@v4 step before the claude-code-action

Problem

The workflow was failing with two related errors:

fatal: not in a git directory
error: Executable not found in $PATH: "claude"

The claude-code-action requires a git repository to be present because it:

  1. Configures git authentication during setup
  2. Installs Claude Code which needs to operate in a git directory

Solution

Added the missing actions/checkout@v4 step before running the claude-code-action. This ensures the repository is cloned and available as a git directory.

Test plan

  • Create PR
  • Merge PR
  • Apply triage-check label to a test issue
  • Verify workflow runs successfully without git errors

🤖 Generated with Claude Code

The claude-code-action requires a git repository to be present for
git configuration during setup. Without checking out the repository,
the action fails with:

  fatal: not in a git directory
  error: Executable not found in $PATH: "claude"

This adds the required actions/checkout@v4 step before running the
claude-code-action to ensure the git directory exists.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Addresses artipacked security warning about credential persistence
through GitHub Actions artifacts. This prevents git credentials from
being persisted in the workspace.
@david-fraley david-fraley enabled auto-merge (squash) December 11, 2025 20:49
@david-fraley david-fraley merged commit 37e8b89 into main Dec 11, 2025
28 checks passed
@david-fraley david-fraley deleted the fix/add-checkout-step branch December 11, 2025 20:53
@github-actions github-actions bot locked and limited conversation to collaborators Dec 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants