fix: restrict e2e workflow token and validate dispatch SHAs - #69
Merged
Merged
Conversation
…ccess Authorized Vercel preview dispatches could check out a fork commit and execute it with the default contents: write token and repository secrets.
tim123abc
requested review from
kitfoster,
mknichel and
tknickman
as code owners
September 16, 2026 17:18
Contributor
|
Your Vercel team microfrontends-vtest314 is not permitted to deploy from this git repository. Contact an administrator to add github organization vercel as a Protected Git Scope in microfrontends-vtest314 on Vercel. Once added, commit again to see your changes. Learn more: https://vercel.com/docs/security/protected-git-scopes |
tim123abc
enabled auto-merge (squash)
September 16, 2026 17:33
mknichel
approved these changes
Sep 16, 2026
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.
Summary
contents: read+statuses: writesorepository_dispatchfrom an authorized fork preview cannot run withcontents: write.client_payload.git.shaagainst first-party branches/tags before checkout, dropsecrets: inherit, and disable persisted checkout credentials.DEPLOYMENT_PROTECTION_BYPASSandFLAGS_SECRETin GitHub and Vercel.Test plan
main(dispatch workflows only pick up this change from the default branch)workflow_dispatchstill runs e2e and posts commit statusesDEPLOYMENT_PROTECTION_BYPASSandFLAGS_SECRET