Cannot start danger with checks API setup
See original GitHub issueIt looks like danger is not correctly set to run with Github Checks API only.
I’m starting danger with command
yarn danger ci --use-github-checks --text-only
This is the stacktrace I’m getting:
The DANGER_GITHUB_API_TOKEN/DANGER_BITBUCKETSERVER_HOST environmental variable is missing
Without an api token, danger will be unable to comment on a PR
Error: Error: Cannot use authenticated API requests.
at Object.getPlatformForEnv (/home/circleci/project/node_modules/danger/distribution/platforms/platform.js:51:11)
at Object.<anonymous> (/home/circleci/project/node_modules/danger/distribution/commands/ci/runner.js:81:57)
at step (/home/circleci/project/node_modules/danger/distribution/commands/ci/runner.js:32:23)
at Object.next (/home/circleci/project/node_modules/danger/distribution/commands/ci/runner.js:13:53)
at fulfilled (/home/circleci/project/node_modules/danger/distribution/commands/ci/runner.js:4:58)
at process._tickCallback (internal/process/next_tick.js:68:7)
at Function.Module.runMain (internal/modules/cjs/loader.js:757:11)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
error Command failed with exit code 1.
I have only DANGER_JS_APP_INSTALL_ID
set in envirovment.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Getting Set Up - Danger.systems
Open this up in your editor, then replace the #gem 'rails' with the gem above. Then run bundle install inside your project folder....
Read more >app.yaml Configuration File - Flexible Environment
This runtime does not support any App Engine APIs. ... The delay, in seconds, after the instance starts during which health check responses...
Read more >External Status Checks API - GitLab Docs
Execute this API call as any user with rights to approve the merge request itself. POST /projects/:id/merge_requests/:merge_request_iid/ ...
Read more >Docker security
When you start a container with docker run , behind the scenes Docker creates a set ... Of course, if the host system...
Read more >Secrets | Kubernetes
If the Secret cannot be fetched (perhaps because it does not exist, or due to a temporary lack of connection to the API...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
According to Changelog nope.
You’re welcome to take a look, we mostly use Danger via Peril (or in OSS repos using the access token) so I don’t really get this happening personally and I don’t have enough the time to fix bug for other folk and maintain this much oss