Scan after deploy
GitHub Actions
Start a scan from your workflow after each deploy.
Integration guide
Deploy to Cloudflare Pages from GitHub Actions with Wrangler, then add the Rookflare step. The scan starts once the new version is live.
Overview
Setup
Step 1
Open the website, go to the Settings tab and select “Create deploy hook” in the “Scan after deploy” card. Copy the token right away: this is the only time Rookflare shows it in full. The card keeps the endpoint and the last four characters of the token.
Step 2
In GitHub, open the repository’s Settings → Secrets and variables → Actions and add ROOKFLARE_DEPLOY_TOKEN with the token as its value, next to CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID.
Step 3
Put the Rookflare step right after the step that runs “wrangler pages deploy”. Replace dist with your build output folder and northwind-shop with your Pages project name.
Sample endpoint and placeholder token. The dashboard fills in yours.
Step 4
Push to the branch you set as the project’s production branch. In Cloudflare the deployment appears under the project with the Production label; right after it, “Last used” changes on the Rookflare card and Scan history shows a scan with the trigger “After deploy”.
Troubleshooting
Wrangler deploys the current Git branch. A branch other than the production branch becomes a preview deployment on its own pages.dev address, yet the Rookflare step still scans your live site. Run the deploy job only on the production branch, or add “if: github.ref == 'refs/heads/main'” to the Rookflare step.
A command in the Pages build settings runs before Cloudflare publishes the build, so a scan from there would see the old version. Move the deploy to GitHub Actions as shown, or call the hook from a later step of your own pipeline.
The Cloudflare token needs Account → Cloudflare Pages → Edit, and CLOUDFLARE_ACCOUNT_ID must be the account that owns the project. This happens before the Rookflare step, which is skipped when the deploy fails.
401 means a wrong, rotated or revoked token, 402 a plan or daily limit, 409 an unverified or paused website and 429 more than 30 calls a minute. The cURL guide explains each answer and what to do.
This guide does not rely on it. Calling the hook from the workflow that runs Wrangler is the setup we know starts the scan after the new version is live.
No. A production deployment serves both the pages.dev address and the custom domains of the project, and Rookflare scans the pages of the website you added.
Wrangler can attach it with --commit-hash, which helps you match a Cloudflare deployment to a commit. Rookflare gets the SHA from its own step, so the two stay in sync when both use github.sha.
Add your address, pick the pages and approve the first scan as your baseline.
Plans start at €19 per month. Prices are provisional.