lib/danger/ci_source/bitrise.rb in danger-3.2.1 vs lib/danger/ci_source/bitrise.rb in danger-3.2.2
- old
+ new
@@ -11,10 +11,11 @@
# bundle install
# bundle exec danger
# ```
# ### Token Setup
#
- # Add the `DANGER_GITHUB_API_TOKEN` to your workflow's Secret Env Vars
+ # Add the `DANGER_GITHUB_API_TOKEN` to your workflow's App Env Vars.
+ # Warning: adding the token as a Secret Env Var will not work for PR builds, as [Bitrise does not expose secret vars to PRs](https://bitrise.uservoice.com/forums/235233-general/suggestions/11701587-make-secret-env-variables-available-for-prs-from-t).
#
class Bitrise < CI
def self.validates_as_ci?(env)
env.key? "BITRISE_IO"
end