Skip to content

fix(ci): skip Vercel preview deploys without token#552

Closed
wcpos-bot[bot] wants to merge 1 commit into
mainfrom
fix/skip-vercel-without-token
Closed

fix(ci): skip Vercel preview deploys without token#552
wcpos-bot[bot] wants to merge 1 commit into
mainfrom
fix/skip-vercel-without-token

Conversation

@wcpos-bot

@wcpos-bot wcpos-bot Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Check whether VERCEL_TOKEN is available without printing its value.
  • Skip the Vercel pull, build, deploy, and preview-comment steps when the token is unavailable.
  • Let Dependabot and fork PR checks finish without attempting an unauthenticated Vercel deployment.

Design decisions

  • Use a step output for token availability so VERCEL_TOKEN is not exposed as a job-wide environment variable.
  • Keep the existing preview job gate and only skip steps that depend on Vercel credentials.

Test plan

  • Run actionlint .github/workflows/ci.yml.
  • Verify the original workflow fails all five token-guard assertions and the updated workflow passes them.
  • Run lint, type checking, 2,083 unit tests, and the production build.

Related

@greptile-apps

greptile-apps Bot commented Jul 16, 2026

Copy link
Copy Markdown

Greptile Summary

This PR skips Vercel preview operations when the deployment token is unavailable. The main changes are:

  • Adds a step-scoped check for VERCEL_TOKEN availability.
  • Gates preview pull, build, deploy, and comment steps on that check.
  • Preserves the existing fork restriction for preview comments.

Confidence Score: 5/5

This looks safe to merge.

  • No blocking issues found in the changed code.

Important Files Changed

Filename Overview
.github/workflows/ci.yml Adds a non-disclosing token check and consistently gates Vercel-dependent preview steps.

Reviews (1): Last reviewed commit: "fix(ci): skip Vercel preview without tok..." | Re-trigger Greptile

@kilbot
kilbot deleted the branch main July 18, 2026 13:41
Base automatically changed from dependabot/github_actions/actions-621440cc45 to main July 18, 2026 13:41
@kilbot kilbot closed this Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant