Skip to content

Avoid persisting Dragon checkout credentials - #3738

Draft
cmungall wants to merge 1 commit into
masterfrom
agent/avoid-persisted-dragon-credentials
Draft

Avoid persisting Dragon checkout credentials#3738
cmungall wants to merge 1 commit into
masterfrom
agent/avoid-persisted-dragon-credentials

Conversation

@cmungall

Copy link
Copy Markdown
Member

Summary

  • opt both AI-agent checkout steps out of persisted credentials
  • configure Git to authenticate through the gh credential helper
  • scope GH_TOKEN to the Claude step instead of writing it to GITHUB_ENV

Why

The checkout credential was previously available through Git configuration and could be captured when an agent inspected .git/config. This avoids that accidental exposure path while preserving intelligent gh usage and authenticated git push.

Security boundary

The agent still receives PAT_FOR_PR as GH_TOKEN and as the Claude action github_token input, so it retains the requested GitHub capabilities. This change prevents persistence-based accidental disclosure; it does not sandbox an agent with arbitrary shell access.

Validation

  • yq eval '.' .github/workflows/ai-agent.yml
  • yamllint -d relaxed .github/workflows/ai-agent.yml (existing line-length warnings only)
  • actionlint .github/workflows/ai-agent.yml
  • git diff --check

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.

1 participant