Skip RTD checks in CI when PR comes from outside the organization #145
Labels
bug
A crash or error in behavior.
good first issue
Is this your first time contributing? This could be a good place to start!
Describe the bug
When a PR to this repo is submitted from outside the organisation (eg, a dependbot update), CI tasks checking RTD will fail.
Steps to reproduce
Submit a PR from a non-BeeWare repo. CI will fail the "Verify Docs Build (briefcase)" and "Verify Docs Build (toga)" tasks.
Expected behavior
CI should pass green, with the RTD tests being skipped.
Screenshots
No response
Environment
Logs
See https://github.com/beeware/.github/actions/runs/9538701504/job/26288364901?pr=144
...
Additional context
The problem appears to be that the job requires an API token, but that API token isn't exposed to external PRs.
In practice, this isn't an issue, as PRs from BeeWare (such as the autoupdate script) and use in downstream repos (where it is part of the release workflows) will always have access to the token. This is purely an inconvenience for evaluating PRs submitted to this repo - and even then, only
dependabot
PRs.We either need to skip these tests if the submitting repository isn't
beeware
; or switch to a mechanism of evaluating a build that doesn't require an API token (e.g., a direct inspection of the expected published page, looking for a 404?)This isn't a new problem has existed for a while; it's easy enough to work around, but I figured if someone has some spare time, it would be a nice bit of polish to fix it.
The text was updated successfully, but these errors were encountered: