0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00
ghost/.github
Chris Raible e2bd75040c
Improved error message if secrets are missing in CI run (#22342)
ref
https://linear.app/ghost/issue/ANAL-137/experiment-develop-an-mvp-of-our-cicd-workflows

- Github Actions doesn't allow repository secrets to be accessed in CI
runs when the PR is opened from a fork. This is an intentional design
"feature" for security purposes, so there aren't any legitimate /
risk-free workarounds.
- This results in some frustratingly vague error messages if you open a
PR from a fork and it fails, usually in the form of some "authentication
failed" message, which doesn't immediately point to a solution.
- This commit adds an explicit check for access to the required secrets
for both the browser tests and the tinybird tests (the only two jobs
that I'm aware of that depend on secrets being available), and outputs a
user-friendly error message if it fails, directing the user to re-open
the PR from the upstream TryGhost/Ghost repo
2025-03-03 19:46:28 -08:00
..
actions/restore-cache Update actions/cache action to v4 2024-04-18 12:36:07 +02:00
hooks Improved pre-commit hook to automatically remove submodules (#21222) 2024-10-12 03:40:31 -07:00
ISSUE_TEMPLATE Switched our old style bug report template to a form 2021-11-12 10:30:08 +00:00
scripts Added .env.example file to simplify getting started with docker compose (#22247) 2025-02-19 13:16:30 -08:00
workflows Improved error message if secrets are missing in CI run (#22342) 2025-03-03 19:46:28 -08:00
CODE_OF_CONDUCT.md Added contributor code of conduct 2023-10-18 12:10:05 +02:00
codecov.yml Updated workflow for code coverage 2023-07-06 09:24:45 +02:00
CONTRIBUTING.md Added translation gitmoji (#21226) 2024-10-04 16:28:31 +00:00
FUNDING.yml Update FUNDING.yml 2020-07-28 13:19:20 +07:00
PULL_REQUEST_TEMPLATE.md Removed GitHub Copilot for PRs templating value 2023-11-20 11:43:58 +01:00
SUPPORT.md Updated links to docs (#10941) 2019-07-22 18:17:50 +08:00