Skip to content

Commit 83acd56

Browse files
authored
fix: [FX-2626] set up danger env variable for self-hosted runners (#128)
* fix: set up danger env variable for self-hosted runners * chore: add changeset * chore: update copies * chore: update copies * chore: update copies
1 parent e3230d5 commit 83acd56

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.changeset/update.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'davinci-github-actions': patch
3+
---
4+
5+
---
6+
7+
- set the `danger` environment variable to ensure that all API requests are performed on the correct domain

danger/action.yml

+6
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,10 @@ runs:
55
using: composite
66
steps:
77
- shell: bash
8+
env:
9+
# Self-hosted runners can override the GITHUB_URL environment variable
10+
# to a potentially incorrect value, and this variable may also be used
11+
# for other purposes beyond communicating with the GitHub API.
12+
# The DANGER_GITHUB_API_BASE_URL env variable takes higher priority
13+
DANGER_GITHUB_API_BASE_URL: https://api.github.com
814
run: yarn davinci-ci danger

0 commit comments

Comments
 (0)