---
title: "Discussion on \"Giving a coding agent Git access: PATs, deploy keys and GitHub App tokens compared\" | Hashnode"
description: "Discussion on \"Giving a coding agent Git access: PATs, deploy keys and GitHub App tokens compared\". Most coding agents end their work the same way: push a branch and open a pull request. That needs a Git credential, and the easiest one to reach for is the worst: your own personal access token, with"
url: "https://hashnode.com/posts/giving-a-coding-agent-git-access-pats-deploy-keys-and-github-app-tokens-compared/6b07831f6ef551865912b3ae"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Giving a coding agent Git access: PATs, deploy keys and GitHub App tokens compared](https://sandscale.hashnode.dev/giving-a-coding-agent-git-access-pats-deploy-keys-and-github-app-tokens-compared?utm_source=hashnode&utm_medium=feed)

Most coding agents end their work the same way: push a branch and open a pull request. That needs a Git credential, and the easiest one to reach for is the worst: your own personal access token, with

1d ago · 6 min read · sandscale.hashnode.dev  
Read the article

-   [#git](https://hashnode.com/tag/git)
-   [#github](https://hashnode.com/tag/github)
-   [#security](https://hashnode.com/tag/security)
-   [#ai-agents](https://hashnode.com/tag/ai-agents)

## Written by

[Sandscale](https://hashnode.com/@sandscale)

@sandscale

  
[View profile](https://hashnode.com/@sandscale)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
