-
Notifications
You must be signed in to change notification settings - Fork 8k
Closed
Labels
bugSomething isn't workingSomething isn't workinghelp wantedContributions welcomeContributions welcomepriority-3Affects a small number of users or is largely cosmeticAffects a small number of users or is largely cosmetic
Description
Describe the bug
gh actions --help requires login.
It seems to be unnecessary.
$ gh --version
gh version 1.11.0 (2021-06-03)
Steps to reproduce the behavior
Run gh actions --help without authentication.
Expected vs actual behavior
Expected
$ gh actions --help
Welcome to GitHub Actions on the command line.
GitHub CLI integrates with Actions to help you manage runs and workflows.
Interacting with workflow runs
gh run list: List recent workflow runs
gh run view: View details for a workflow run or one of its jobs
gh run watch: Watch a workflow run while it executes
gh run rerun: Rerun a failed workflow run
gh run download: Download artifacts generated by runs
To see more help, run 'gh help run <subcommand>'
Interacting with workflow files
gh workflow list: List all the workflow files in your repository
gh workflow view: View details for a workflow file
gh workflow enable: Enable a workflow file
gh workflow disable: Disable a workflow file
gh workflow run: Trigger a workflow_dispatch run for a workflow file
To see more help, run 'gh help workflow <subcommand>'
For more in depth help including examples, see online documentation at:
<https://docs.github.com/en/actions/guides/managing-github-actions-with-github-cli>
USAGE
gh actions [flags]
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
Actual
$ gh actions --help
Welcome to GitHub CLI!
To authenticate, please run `gh auth login`.
Logs
I tested it in GitHub Actions.
https://github.com/SnowCait/cli/runs/2812335448?check_suite_focus=true
name: GitHub CLI
on:
push:
workflow_dispatch:
jobs:
help:
runs-on: ubuntu-latest
steps:
- run: gh --version
- run: gh --help
- run: gh repo --help
- run: gh actions --help
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: gh actions --helpReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedContributions welcomeContributions welcomepriority-3Affects a small number of users or is largely cosmeticAffects a small number of users or is largely cosmetic