Repository navigation
ci(preview): skip preview for fork PRs and harden workflow - #1198
Merged
Merged
Conversation
Fork PRs do not receive repository secrets, so the GitHub App token step failed on every fork PR. Skip both preview jobs for forks, pass the branch-derived alias through env instead of inline expressions, and stop checkout from persisting the GITHUB_TOKEN.
Contributor
|
🗑️ Preview environment destroyed. |
inference-gateway-releaser Bot
added a commit
that referenced
this pull request
Nov 12, 2026
## [0.9.26](0.9.25...0.9.26) (2026-11-12) ### 👷 CI * **preview:** skip preview for fork PRs and harden workflow ([#1198](#1198)) ([ac9280e](ac9280e)) ### 📚 Documentation * **cli:** document infer tools list ([#1199](#1199)) ([7f9c924](7f9c924)) * **cli:** document workspace volumes in daemon.yaml ([#1189](#1189)) ([eafe773](eafe773)) * **cli:** skipping unchanged screen frames ([#1178](#1178)) ([1afabdf](1afabdf)) * **cli:** suggestions read the session's recent errors ([#1182](#1182)) ([745964b](745964b)) * **computer:** document Vulkan on the computer image ([#1197](#1197)) ([139a141](139a141)) * **desktop:** document local cluster folders ([#1193](#1193)) ([1703698](1703698)) * **desktop:** document volumes on a workspace ([#1191](#1191)) ([a53f2fb](a53f2fb)) * **desktop:** per-workspace computer, browser and recording switches ([#1185](#1185)) ([965a515](965a515)) * **desktop:** skipping unchanged screen frames ([#1180](#1180)) ([ce83ea8](ce83ea8)) * document the mirelo provider for sound-effect generation ([#1196](#1196)) ([3dcaa9a](3dcaa9a)) * **operator:** document spec.sandbox.volumes ([#1187](#1187)) ([a9db2ff](a9db2ff)) ### 🔧 Miscellaneous * **deps:** bump claude-code 2.1.308 -> 2.1.318 ([#1183](#1183)) ([3bf7796](3bf7796))
Contributor
|
🎉 This PR is included in version 0.9.26 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Fork PRs don't receive repository secrets on
pull_requestevents, so the preview job failed at thecreate-github-app-tokenstep with an emptyclient-id(seen on PR #1196).Changes
previewandteardownjobs only when the PR head is in this repo (head.repo.full_name == github.repository). Fork PRs now show as skipped, not failed. The trigger stayspull_request-pull_request_targetwould build untrusted fork code with secrets available.run:steps throughenvinstead of inline${{ }}expressions, which closes a script-injection path through crafted branch names.persist-credentials: falseon both checkouts soGITHUB_TOKENis not left in.git/configwhilebun install/bun run buildrun.Testing
actionlintandprettier --checkpass.Trade-off: fork PRs no longer get an automatic preview.