From 3cfc2cf9c320366affca6f01cade9c62de0e3870 Mon Sep 17 00:00:00 2001 From: Joseph Mearman Date: Wed, 31 May 2023 15:24:24 +0100 Subject: [PATCH] add instruction for using `gh auth token` (#1831) --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 389147f6..4a4db4a0 100644 --- a/README.md +++ b/README.md @@ -192,6 +192,12 @@ If your workflow depends on this token, you need to create a [personal access to act -s GITHUB_TOKEN=[insert token or leave blank and omit equals for secure input] ``` +If [GitHub CLI](https://cli.github.com/) is installed, the [`gh auth token`](https://cli.github.com/manual/gh_auth_token) command can be used to autmatically pass the token to act + +```bash +act -s GITHUB_TOKEN="$(gh auth token)" +``` + **WARNING**: `GITHUB_TOKEN` will be logged in shell history if not inserted through secure input or (depending on your shell config) the command is prefixed with a whitespace. # Known Issues