Help with Access Token Issue - WordPress Plugin Updater

I self-host a WordPress plugin through GitHub. I followed this tutorial to implement the ability to push updates through WordPress’s auto-updater using GitHub’s Release feature.

Since GitHub no longer allows an access token to be used as a query parameter to access the API, the updater no longer works. I’m not sure exactly how to fix this code to make it work: https://pastebin.com/embed_js/Tj5PnGdp

The other code is in the main plugin PHP file and looks like this:
require_once( ‘includes/updater.php’ );
if ( is_admin() ) {
new PluginUpdater( FILE, ‘github-user’, ‘plugin-name’ );
}

Does anyone know how to fix this so that it “sends the token in the header”, as referenced in the second link?

You need to add an Authorization HTTP header, it should look like this:

Authorization: token YOUR_TOKEN_HERE

I’m not familiar with PHP so I’m afraid I can’t tell you how to add a header to the request.