Scripting the download of a private repository's GitHub release asset

Introduction Last week I needed to script the download of a specific asset from a release of a private GitHub repository. It turns out that there is no direct way to do this as you first need to resolve the asset name into an ID. Here is a little script that does just that without any big dependency like the gh CLI. The script #!/usr/bin/env bash set -euCo pipefail github_pat = 'XXXXXX' owner =…