Skip to content

Commit

Permalink
fix: [FX-2626] set up danger env variable for self-hosted runners (#128)
Browse files Browse the repository at this point in the history
* fix: set up danger env variable for self-hosted runners

* chore: add changeset

* chore: update copies

* chore: update copies

* chore: update copies
  • Loading branch information
dmaklygin authored Feb 27, 2023
1 parent e3230d5 commit 83acd56
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .changeset/update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'davinci-github-actions': patch
---

---

- set the `danger` environment variable to ensure that all API requests are performed on the correct domain
6 changes: 6 additions & 0 deletions danger/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,10 @@ runs:
using: composite
steps:
- shell: bash
env:
# Self-hosted runners can override the GITHUB_URL environment variable
# to a potentially incorrect value, and this variable may also be used
# for other purposes beyond communicating with the GitHub API.
# The DANGER_GITHUB_API_BASE_URL env variable takes higher priority
DANGER_GITHUB_API_BASE_URL: https://api.github.com
run: yarn davinci-ci danger

0 comments on commit 83acd56

Please sign in to comment.