cilium / release

Repository used to generate release notes for Cilium releases
Apache License 2.0
6 stars 6 forks source link

Auto-populate GITHUB_TOKEN #229

Closed joestringer closed 4 months ago

joestringer commented 4 months ago

If not specified in the environment, run gh auth token to fetch a token in order to fulfill the user's request.

joestringer commented 4 months ago
$ gh auth token --help
This command outputs the authentication token for an account on a given GitHub host.

Without the `--hostname` flag, the default host is chosen.

Without the `--user` flag, the active account for the host is chosen.

USAGE
  gh auth token [flags]

FLAGS
  -h, --hostname string   The hostname of the GitHub instance authenticated with
  -u, --user string       The account to output the token for

INHERITED FLAGS
  --help   Show help for command

LEARN MORE
  Use `gh <command> <subcommand> --help` for more information about a command.
  Read the manual at https://cli.github.com/manual
joestringer commented 4 months ago

It works, I don't see a way to specify specific permissions :shrug:

aanm commented 4 months ago

let's see if it works :crossed_fingers: