JoshuaKGoldberg / create-typescript-app

Quickstart-friendly TypeScript template with comprehensive, configurable, opinionated tooling. 💝
MIT License
621 stars 63 forks source link

🚀 Feature: Use get-github-auth-token instead of $(gh auth token) #1532

Closed JoshuaKGoldberg closed 1 month ago

JoshuaKGoldberg commented 1 month ago

Bug Report Checklist

Overview

I just published https://github.com/JoshuaKGoldberg/get-github-auth-token, which is a small utility that attempts to find a GitHub auth token from the following places, in order:

  1. process.env.GH_TOKEN
  2. Executing gh auth token as a child process

Let's use that as the underlying way to get GitHub auth tokens. This can work as a precursor to #667 -> #1000.

Additional Info

💖

github-actions[bot] commented 1 month ago

:tada: This is included in version v1.60.0 :tada:

The release is available on:

Cheers! 📦🚀