GitHub
#tech📝
REST API v3
Contents | GitHub Developer Guide
コマンドライン用の個人アクセストークンを作成する - GitHub ヘルプ
GitHub API v3 | GitHub Developer Guide
GitHub Actions
GITHUB_TOKENでの認証 - GitHub ヘルプ
tips
プライベートリポジトリの raw file をコマンドライン等から取ってきたい時
https://raw.githubcontent.com/...
のURLをそのまま使うことはできないので、APIの
repos/contents
を叩く → base64デコード
curl - How can I download a single raw file from a private github repo using the command line? - Stack Overflow
php - Read Raw Contents of File in Private Repo on Github via access_token - Stack Overflow
Token Expiration on URLs to Private Repos - GitHub Community Forum