微算力 · API 导航与自营网关
API 接入 EN
未登录登录
✨

Github App Authentication

Github App Authentication · v0.1.0
入口已确认,内容待校验 文件树里有 SKILL.md,但正文还没采回,frontmatter 未核对。
安全 unknown 级 作者 rmorse 公开目录收录
1.1k 下载 0 安装 5.4k 收藏 1 浏览

简介

Github App Authentication

原始描述

Give your AI agents and automations their own GitHub (App) identity. Authenticate using GitHub Apps so every commit, PR, and action is attributed to the bot...

通过你的 Agent 添加

安装目录:github-app-authentication/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/github-app-authentication/
Codex CLI~/.codex/skills/github-app-authentication/
DeepSeek Harness~/.agents/skills/github-app-authentication/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: ghapp description: GitHub App Authentication for your agents — allow your bots to use git and gh commands via the cli without sharing or creating accounts for them - just create a GitHub App instead. homepage: https://github.com/operator-kit/ghapp-cli metadata: {"clawdbot":{"emoji":"🔑","requires":{"bins":["ghapp"]},"install":[{"id":"brew","kind":"brew","formula":"operator-kit/tap/ghapp","bins":["ghapp"],"label":"Install ghapp (brew)"},{"id":"bash","kind":"bash","command":"curl -sSL https://raw.githubusercontent.com/operator-kit/ghapp-cli/main/install.sh | bash","bins":["ghapp"],"label":"Install ghapp (bash)"}]}}

ghapp

Use ghapp to authenticate as a GitHub App and use git/gh with installation tokens. Requires a GitHub App with App ID, Installation ID, and a private key (.pem).

Setup (once) — interactive

  • ghapp setup — prompts for App ID, Installation ID, key path; optionally configures git+gh auth

Setup (once) — non-interactive (scripted/LLM)

  • ghapp config set --app-id 123 --installation-id 456 --private-key-path /path/to/key.pem
  • Or with keyring: ghapp config set --app-id 123 --installation-id 456 --import-key /path/to/key.pem
  • Then: ghapp auth configure --gh-auth shell-function

Post-setup

  • ghapp auth configure — configure git credential helper, gh CLI auth, and git identity (if skipped during setup)
  • ghapp auth status — show current auth config and diagnostics

Common commands

  • Get token: ghapp token (cached; --no-cache for fresh)
  • Configure auth: ghapp auth configure [--gh-auth shell-function|path-shim|none]
  • Check status: ghapp auth status
  • Reset auth: ghapp auth reset [--remove-key]
  • Config: ghapp config set, ghapp config get [key], ghapp config path
  • Self-update: ghapp update
  • Version: ghapp version

gh auth modes

  • --gh-auth shell-function — wraps gh via shell function injecting fresh token per call (recommended)
  • --gh-auth path-shim — installs wrapper binary as gh earlier in PATH (CI/containers)
  • --gh-auth none — only writes hosts.yml (token expires ~1hr)

Notes

  • After setup+auth configure, git clone/push/pull and gh commands work transparently — no manual tokens.
  • SSH-style URLs (git@github.com:...) are auto-rewritten to HTTPS.
  • Commits are attributed to the app's bot account (e.g., myapp[bot]).
  • Tokens are cached locally; ghapp token returns in <10ms on cache hit.
  • Config lives at ~/.config/ghapp/config.yaml.
  • Env overrides: GHAPP_APP_ID, GHAPP_INSTALLATION_ID, GHAPP_PRIVATE_KEY_PATH, GHAPP_NO_UPDATE_CHECK=1.
  • Private key can be stored on disk (default) or imported into OS keyring with --import-key.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

没有标签

同类 Skill