Skip to content

Fix credentials-check workflow: replace unsupported --max-tokens flag for claude CLI - #55095

Merged
pelikhan merged 3 commits into
mainfrom
copilot/fix-github-actions-job-another-one
Aug 23, 2026
Merged

pelikhan merged 3 commits into
mainfrom
copilot/fix-github-actions-job-another-one

Conversation

Copilot AI commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

The "Claude credential check" job was failing because claude-code@2.1.237 does not support a --max-tokens flag, causing an immediate CLI argument error:

claude -p --bare --tools "" --max-tokens 100 "Write a haiku about credentials in fewer than 100 tokens."
error: unknown option '--max-tokens'

Fix

  • Replaced --max-tokens 100 with --max-budget-usd 1 in .github/workflows/credentials-check.yml, the CLI's supported flag for capping resource usage on print-mode calls, preserving the intent of bounding cost for the smoke test.

… --max-budget-usd

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix failing GitHub Actions job Fix credentials-check workflow: replace unsupported --max-tokens flag for claude CLI Aug 23, 2026
Copilot AI requested a review from pelikhan August 23, 2026 14:30
@pelikhan
pelikhan marked this pull request as ready for review August 23, 2026 14:34
Copilot AI balanced review requested due to automatic review settings August 23, 2026 14:34
@pelikhan
pelikhan merged commit 06d3dcb into main Aug 23, 2026
@pelikhan
pelikhan deleted the copilot/fix-github-actions-job-another-one branch August 23, 2026 14:34

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes the Claude credential smoke test by using a supported cost-limiting CLI flag.

Changes:

  • Replaces unsupported --max-tokens with --max-budget-usd 1.
  • Standardizes the workflow display name capitalization.
Show a summary per file
File Description
.github/workflows/credentials-check.yml Fixes the Claude invocation and updates the workflow name.

Review details

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Balanced

@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.87.5

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants