Skip to content

Let Dependabot runs deploy Cloudflare previews - #398

Closed
jasikpark wants to merge 1 commit into
mainfrom
b-dependabot-skip-deploy
Closed

jasikpark wants to merge 1 commit into
mainfrom
b-dependabot-skip-deploy

Conversation

@jasikpark

@jasikpark jasikpark commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Every Dependabot PR since #382 has a red pass/fail check (#383–#385, #394–#397), even though typecheck, prettier, test and build all pass.

#382 moved previews from the Cloudflare Pages GitHub app to a deploy job in our own workflow. The app deployed on Cloudflare's side, so it didn't care who opened the PR. The workflow job does: runs triggered by Dependabot get a read-only GITHUB_TOKEN unless a job asks for more, and they read secrets from the Dependabot store instead of the Actions one. So "Comment deploy start" fails with Resource not accessible by integration, and the deploy after it would fail anyway because CLOUDFLARE_API_TOKEN is empty there.

This grants the deploy job pull-requests: write, which fixes the comments. Previews also need the secret:

@nbrownus: CLOUDFLARE_API_TOKEN is an org Actions secret, and Dependabot can't read those. Could you add the same token as an org Dependabot secret, scoped to nebula-docs? It needs an org admin, and the value can't be read back from the Actions secret. Until that's set, Dependabot deploys will still fail, now at the wrangler step.

Only the deploy job references the secret. It deploys the artifact from the build job and never runs pnpm install, so the bumped dependencies' install scripts don't see the token.

After the secret is in place, @dependabot rebase on the open bumps should give them previews.

@jasikpark
jasikpark requested a review from nbrownus November 2, 2026 16:44
@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for docs-nebula ready!

Name Link
🔨 Latest commit 694f433
🔍 Latest deploy log https://github.com/DefinedNet/nebula-docs/actions/runs/41492251607
😎 Deploy Preview Url https://acadc1ac.docs-nebula.pages.dev
😎 Deploy Preview Alias https://b-dependabot-skip-deploy.docs-nebula.pages.dev

Dependabot-triggered runs get a read-only GITHUB_TOKEN unless a job
asks for more, so the deploy job's PR comment failed with "Resource
not accessible by integration" and the pass/fail check went red on
every bump. Grant the deploy job pull-requests: write. Those runs also
read secrets from the Dependabot store, which needs its own
CLOUDFLARE_API_TOKEN.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jasikpark
jasikpark force-pushed the b-dependabot-skip-deploy branch from f250d12 to 5dbc5b4 Compare November 2, 2026 17:33
@jasikpark jasikpark changed the title Skip the Cloudflare deploy for Dependabot runs Let Dependabot runs deploy Cloudflare previews Nov 2, 2026
@jasikpark

Copy link
Copy Markdown
Member Author

lol actually the deploy token was just dead, replaced and things are gucci

@jasikpark jasikpark closed this Nov 3, 2026
@jasikpark
jasikpark deleted the b-dependabot-skip-deploy branch November 3, 2026 22:10
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