anthropics/claude-code-action

Feature Request: Display syntax errors for .claude/setting.json and GitHub Actions workflows

Open

#242 建立於 2025年7月10日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)TypeScript (1,889 fork)auto 404
enhancementgood first issuep3

倉庫指標

Star
 (7,889 star)
PR 合併指標
 (平均合併 18天 20小時) (30 天內合併 26 個 PR)

描述

Description

Problem: When running Claude Code Action, syntax errors in configuration files are silently ignored. Users get no error messages, making it hard to debug issues.

Request: Please add syntax error detection and display for:

  1. .claude/setting.json
  2. GitHub Actions workflow syntax (especially in Claude Code Action specific fields)

Examples

GitHub Actions Workflow

Currently no error shown for:

allowed_tools: |
  - 'Bash(pnpm install)'
  - 'Bash(pnpm test)'
  - 'Bash(pnpm build)'
  - 'Bash(pnpm lint)'

Expected error message:

Error: Invalid syntax in 'allowed_tools'. Remove hyphens (-) when using pipe (|) notation.
Correct format:
allowed_tools: |
  'Bash(pnpm install)'
  'Bash(pnpm test)'

.claude/setting.json

Currently no error shown for invalid JSON syntax.

Expected: Clear error messages with line numbers for JSON syntax errors.

Benefits:

  • Faster debugging
  • Better developer experience
  • Prevents silent failures

貢獻者指南