Report this

What is the reason for this report?

github action ... doctl apps update fails with GitHub user not authenticated

Posted on October 16, 2023

Hello!

I have actions working with doctl.

    jobs:
    
      deploy:
        name: Development App Stack
        runs-on: ubuntu-latest
        timeout-minutes: 10
        steps:
    
          - name: install-doctl
            uses: digitalocean/action-doctl@v2
            with:
              token: ${{ secrets.DO_TOKEN }}
       
          - name: get-app
             run: doctl apps get <DO app id>
    
          - name: update-app
             run: doctl apps update <DO app id> --spec "<yaml file in github repo>" --access-token ${{ secrets.DO_TOKEN }}

Problem:

  • install-doctl WORKS
  • get-app WORKS
  • update-app FAILS

Error:

Error: PUT https://api.digitalocean.com/v2/apps/<DO app id>: 400 (request "aaaa...") 
**GitHub user not authenticated**

I am fairly sure this is the REST API refusing even though I am passing the same token I used to get-app.

What is the REST API expecting?

Thanks!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.