-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accessing draft releases is not possible in GitHub runners using gh release list
#9076
Comments
gh release list
@juanjjaramillo : sorry to hear about the inconsistent experience; let's see if we can get to the bottom of what is going on! 👍 Are there any limitations to the Release REST API endpoints being used? The code in question is based around pulling this data from GraphQL: cli/pkg/cmd/release/list/http.go Lines 38 to 49 in e14f0d7
Looking at the
@juanjjaramillo: What happens if you give the runner the ability to write releases? |
Thank you @andyfeller for taking a look at the issue. Right now these are the current permissions we have:
I thought that giving |
@andyfeller please let me know what to do next. As I mentioned above, I think we already have the needed permissions and the problem is still happening |
Describe the bug
The output of
gh release list
does not list draft releases when run on GitHub runners.Steps to reproduce the behavior
On a GitHub runner, run the following command on a workflow:
Expected vs actual behavior
Expected output
Here is the output when command is run on MacOS Sonoma 14.4.1 on an Apple M1 Max chip:
Actual output
GitHub runner environment:
Actual output:
The text was updated successfully, but these errors were encountered: