Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Proxy Danger requests through a proxy service (#10395)

Marshall Bowers13c14d9b96a2
diff --git a/.github/workflows/danger.yml b/.github/workflows/danger.yml
index e3daab45cfa..a6044dc4f46 100644
--- a/.github/workflows/danger.yml
+++ b/.github/workflows/danger.yml
@@ -32,4 +32,10 @@ jobs:
- name: Run Danger
run: pnpm run --dir script/danger danger ci
env:
- GITHUB_TOKEN: ${{ github.token }}
+ # This GitHub token is not used, but the value needs to be here to prevent
+ # Danger from throwing an error.
+ GITHUB_TOKEN: "not_a_real_token"
+ # All requests are instead proxied through an instance of
+ # https://github.com/maxdeviant/danger-proxy that allows Danger to securely
+ # authenticate with GitHub while still being able to run on PRs from forks.
+ DANGER_GITHUB_API_BASE_URL: "https://danger-proxy.fly.dev/github"