anthropics / anthropics/claude-code-action

workflow validation failed if base branch's name has # in it

Open
#1,314 1 comment 0 reactions 0 assignees View on GitHub
bug p2
Dominant language
TypeScript
Stars
8.9k
Forks
2.1k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

**Describe the bug**
If change base branch into something like `feat/#689-v1.2.0`, then Claude Code actions failed with `workflow validation failed` error. If we rename base brach(of course, no changes in workflows) like `develop/v1.2.0`, then workflows works fine.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to your repository (where Claude Code actions workflow already exists) in Github
2. Go to `Settings`
3. In `General`, find `Default branch` menu
4. change Default branch into something has `#` in it

**Expected behavior**
A clear and concise description of what you expected to happen.

Then Claude Code actions start to fail with below message
```
Warning: Skipping action due to workflow validation: Workflow validation failed. The workflow file must exist and have identical content to the version on the repository's default branch. If you're seeing this on a PR when you first add a code review workflow file to your repository, this is normal and you should ignore this error.
```

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Workflow yml file**
If it's not sensitive, consider including a paste of your full Claude workflow.yml file.

**API Provider**

[ ] Anthropic First-Party API (default)
[ ] AWS Bedrock
[ ] GCP Vertex
I used Github apps for claude connection

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Reproduce the failure by setting the repository default branch to a name containing `#`, such as `feat/#689-v1.2.0`, then compare it with `develop/v1.2.0`; done means Claude Code actions validate and start successfully without the reported workflow validation error.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, typescript
Domain
ci-cd
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.