How to download latest private GitHub release with PowerShell script? #24683
-
Hello, I recently wrote a PowerShell script that downloads the latest release from a public repo and that works as intended. However, I want to change my script so it can access my private repo. Here is the code I have tried so far:
I get the following error when testing on my private repo:
Am I using the access token incorrectly? As I said above the script works perfectly fine on my public repo and fails on my private repo. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hello there @bmils I found a solution ! Simple version (without tag and folder): Download assets from private Github releases using PowerShell · GitHub Version similar to your script:
The Linux version helped me a lot: Download assets from private Github releases · GitHub |
Beta Was this translation helpful? Give feedback.
-
Is this still working for you? It does not work for me, get error: Invoke-WebRequest : {"message":"Not Found","documentation_url":"https://docs.github.com/rest/releases/releases#list-releases"} |
Beta Was this translation helpful? Give feedback.
Hello there @bmils
I found a solution !
Simple version (without tag and folder): Download assets from private Github releases using PowerShell · GitHub
Version similar to your script: