Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Annotating resources Error: HttpError: Bad credentials

See original GitHub issue

In GitHub Enterprise Server 3.4.3 using self hosted runners.

My deployment works, pods are created and running filne, but the action fails with:

deployment "xx-api" successfully rolled out
Printing ingresses
/home/runner/actions-runner/_work/_tool/kubectl/1.24.1/x64/kubectl get ingress/ing-xxx-api -o json --insecure-skip-tls-verify --namespace ns-xxx-api
# ingres is printed here

Annotating resources
Error: HttpError: Bad credentials

My action looks like this:

          - name: Deploy application
            uses: Azure/k8s-deploy@v3.1
              action: deploy
              images: |
                  ${{ env.AZURE_CONTAINER_REGISTRY }}/${{ env.APP_NAME }}:${{ env.TAG }}
              namespace: ${{ env.NAMESPACE }}
              manifests: ${{ steps.bake.outputs.manifestsBundle }}

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

januszjcommented, Jun 15, 2022

This could be the reason, this is Enterprise Server and self hosted runners. Or maybe missing permission ? What permission is required for this to work ?

OliverMKingcommented, Jun 13, 2022

Are you locking down your workflow permissions to prevent the GitHub token from being passed?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bad credentials] personal token auth to create a gist doesn't ...
What happened? I'm running this, following the create a gist section. const octokit = new Octokit({ auth: token }); await ...
Read more >
Oauth2 with Spring throwing bad credentials - Stack Overflow
I had a similar issue when upgrading from Spring Security 4.0.4 to 4.1.1. Try changing "alias" in your authentication-manager bean definition to ...
Read more >
How to fix the issue that Github Data Source fails with "Bad ...
Recently, Github changes their security policy and Github Data Source fails with the below error message: Bad credentials.
Read more >
Cluster Manager Error Messages - CloudBees Documentation
This chapter provides information about the most common error messages for the Cluster Manager component of CloudBees Build Acceleration.
Read more >
HTTP/1.1: Status Code Definitions
For example, including local annotation information about the resource might result in a superset of the metainformation known by the origin server.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found