You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
It is my first time trying to use this github-action. So far, I have successfully used the following step specification.
- id: dbt_cloud_runname: Run dbt job on target environmentrun: | RESPONSE=$(curl -v -H "Authorization:Token ${{ secrets.DBT_CLOUD_API_TOKEN }}" -H "Content-Type:application/json" \ -d '{"cause":"Triggered by Github Action"}' \ https://emea.dbt.com/api/v2/accounts/${{ vars.DBT_CLOUD_ACCOUNT_ID }}/jobs/${{ vars.DBT_CLOUD_JOB_ID }}/run/) STATUSCODE=$(echo "$RESPONSE" | jq '.status.code') echo "$RESPONSE" | jq '.status.user_message' if [[ $STATUSCODE != 200 ]]; then echo "$RESPONSE" bash -c "exit 1" fi
However, I'd be interested in replacing it with this github action as a mean to get the actual job outputs status. So I have tried amending my step as follows:
Unfortunately, it fails with the following debug log outputs that seem to indicate my token is not properly configured.
##[debug]Loading env
Run fal-ai/[email protected]
##[debug]Run job body:
##[debug]{
##[debug] "cause": "Triggered by a GitHub Action"
##[debug]}
Error: There has been a problem with running your dbt cloud job:
Error: Request failed with status code 401
##[debug]Error: Request failed with status code 401
##[debug] at createError (/home/runner/work/_actions/fal-ai/dbt-cloud-action/v4.3/node_modules/axios/lib/core/createError.js:16:15)
##[debug] at settle (/home/runner/work/_actions/fal-ai/dbt-cloud-action/v4.3/node_modules/axios/lib/core/settle.js:17:12)
##[debug] at IncomingMessage.handleStreamEnd (/home/runner/work/_actions/fal-ai/dbt-cloud-action/v4.3/node_modules/axios/lib/adapters/http.js:269:11)
##[debug] at IncomingMessage.emit (node:events:525:35)
##[debug] at endReadableNT (node:internal/streams/readable:13[58](***MASKED***):12)
##[debug] at processTicksAndRejections (node:internal/process/task_queues:83:21)
##[debug]Node Action run completed with exit code 1
##[debug]Finishing: Run dbt job on target environment
In my previous implementation, I have used a service token with 'Job Admin' scope on my project. I can see in dbt cloud that my token (a new one with the exact same config) is actually never accessed. Do I need to consider another - more extensive - permission?
Thanks in advance for your support.
The text was updated successfully, but these errors were encountered:
Hi,
It is my first time trying to use this github-action. So far, I have successfully used the following step specification.
However, I'd be interested in replacing it with this github action as a mean to get the actual job outputs status. So I have tried amending my step as follows:
Unfortunately, it fails with the following debug log outputs that seem to indicate my token is not properly configured.
In my previous implementation, I have used a service token with 'Job Admin' scope on my project. I can see in dbt cloud that my token (a new one with the exact same config) is actually never accessed. Do I need to consider another - more extensive - permission?
Thanks in advance for your support.
The text was updated successfully, but these errors were encountered: