<p>I have a little Go app which creates YAML ressources for me I then deploy to a Kubernetes cluster.</p>
<p>It worked quite well but since some hours (?) it fails saying:</p>
<blockquote>
<p>error: Could not automatically download and install resource plugin 'pulumi-resource-kubernetes', install the plugin using <code>pulumi plugin install resource kubernetes</code>.
Underlying error: 401 HTTP error fetching plugin from <a href="https://api.github.com/repos/pulumi/pulumi-kubernetes/releases/latest" rel="nofollow noreferrer">https://api.github.com/repos/pulumi/pulumi-kubernetes/releases/latest</a></p>
</blockquote>
<p>Executing <code>pulumi plugin install resource kubernetes</code> manually returns the same result:</p>
<blockquote>
<p>error: 401 HTTP error fetching plugin from <a href="https://api.github.com/repos/pulumi/pulumi-kubernetes/releases/latest" rel="nofollow noreferrer">https://api.github.com/repos/pulumi/pulumi-kubernetes/releases/latest</a></p>
</blockquote>
<p>I have no idea what's wrong; I don't really get the message and more detail is not available - as far as I can see. The link (<a href="https://api.github.com/repos/pulumi/pulumi-kubernetes/releases/latest" rel="nofollow noreferrer">https://api.github.com/repos/pulumi/pulumi-kubernetes/releases/latest</a>) seems to work properly. If a GitHub API throttle is the reason, I don't see where to place an API key.</p>
<p>I am running MacOS Ventura 13.1 (22C65) on a MacBook Pro 2019. No recent changes here. Go has version 1.19 and the lib is github.com/pulumi/pulumi-kubernetes/sdk/v3 v3.24.1</p>
<p>Any hint is highly appreciated.</p>

<p>The issue can be solved by providing a valid GitHub API token via the <code>GITHUB_TOKEN</code> environment variable.</p>
<p>Thanks a lot <em><strong>Christian Nunciato</strong></em> for the hint.</p>
<p>However, if anybody knows some background about this and why this happened so surprisingly, I would be very interested in some insights/explanations.</p>
