envs

GitHub — a token for the API

github/api · version 1

envs add github/api

This declares the keys below in your catalog and sets none of them. A template is a schema for keys; it never carries a value.

Key Needed Kind Notes
GH_TOKEN required secret The gh CLI prefers this over GITHUB_TOKEN, which Actions injects with a different lifetime. The shape allows every prefix GitHub scans for. Fine-grained tokens default to thirty days.. Shape ^(ghp_|github_pat_|gho_|ghu_|ghs_|ghr_)[A-Za-z0-9_]{20,}$. Rotate every 30 days. where to get it

The JSON the CLI reads