Skip to content

[P2] claude_args 멀티라인 인자의 인용부호 파싱 방식 확인 (pr-machine.yml) #3

Description

@claude

PR #1에서 model/allowed_tools 개별 입력이 claude_args 멀티라인 문자열로 통합되었습니다.

위치: .github/workflows/pr-machine.yml:135-137

claude_args: |
  --model ${{ needs.determine-tier.outputs.model_id }}
  --allowedTools "Bash(gh *),Bash(git *)"

상세: 이 값이 액션 내부에서 셸처럼 인용부호를 인식해 토큰화되지 않으면 --allowedTools가 공백 기준으로 잘못 분리되어(Bash(gh, *),Bash(git, *)") 툴 제한이 무력화될 수 있습니다. PR머신은 자동으로 머지까지 수행하는 권한을 가지므로, gh/git 외 임의 Bash 실행이 허용되면 보안 영향이 있습니다. 이번 리뷰 환경에서는 외부 네트워크 접근이 차단되어 anthropics/claude-code-action 소스를 직접 확인하지 못했습니다.

❓확인 요청(검증 전 수정 금지): claude-code-action@v1의 claude_args 파싱 로직을 공식 문서/소스에서 확인하고, 실제 PR 실행 로그에서 allowedTools 제한이 의도대로 걸리는지 검증해주세요.

Activity

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

    ai:p2-followupPR머신 P2 후속 - 이슈 자동 등록 트리거

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions