* Notify when security advisories are submitted to workers-sdk
* Use repository_advisory event instead of security_advisory
* add description to body
* Add devprod status bot to COFS exceptions
The quick-edit deployment does not hit the production dashboard until a
change is made to the internal dashboard project, so it is safe to
deploy this worker via the changeset-triggered deployment process.
* chore: add CI validation for external package dependencies
Add a validation check that ensures packages explicitly declare their
external (non-bundled) dependencies to prevent dependency chain poisoning.
- Add tools/deployments/validate-package-dependencies.ts validation script
- Add check:package-deps npm script and integrate into pnpm check
- Create scripts/deps.ts allowlists for packages with external dependencies:
- miniflare (12 deps)
- @cloudflare/vite-plugin (8 deps)
- @cloudflare/vitest-pool-workers (7 deps)
- @cloudflare/kv-asset-handler (1 dep)
- @cloudflare/workers-editor-shared (1 dep)
- Update CONTRIBUTING.md with documentation on managing dependencies
- Add unit tests for the validation logic (22 tests)
* fix(kv-asset-handler): bundle mime dependency instead of keeping it external
Move mime from dependencies to devDependencies so it gets bundled into
the distributable. This follows the project's practice of bundling
dependencies to prevent dependency chain poisoning.
* fix(miniflare): bundle acorn and acorn-walk dependencies
Move acorn and acorn-walk from dependencies to devDependencies so they
get bundled into the distributable. These are pure JavaScript parsing
libraries with no special runtime requirements, so they can be safely
bundled.
* chore: bundle more dependencies to reduce supply chain risk
Move 13 dependencies from dependencies to devDependencies so they get
bundled into the distributed packages rather than being installed as
transitive dependencies by users.
Packages updated:
- miniflare: bundle exit-hook, glob-to-regexp, stoppable, youch
- @cloudflare/vitest-pool-workers: bundle birpc, devalue, get-port, semver
- @cloudflare/vite-plugin: bundle @remix-run/node-fetch-server, defu,
get-port, picocolors, tinyglobby
Also updates the EXTERNAL_DEPENDENCIES comments to explain WHY each
remaining dependency cannot be bundled (native binaries, optional native
bindings, runtime resolution needs) rather than just describing how
they are used.
* fix(vitest-pool-workers): bundle dependencies that were moved to devDependencies
* chore: add changeset for dependency bundling
* fixup: remove unnecessary stuff from CONTRIBUTING
* ci: make the release failure alert resilient to missing `DEPLOYMENT_STATUS`
If the npm release fails then the non-npm release is not even attempted.
In which case the `DEPLOYMENT_STATUS` is empty, which was causing the JSON parsing to fail and no alert to be sent.
* Apply suggestion from @edmundhung
---------
Co-authored-by: Edmund Hung <edmund@cloudflare.com>
* add `@cloudflare/` scope to all private packages and rename root package
* move `::group::` inside then
* update blob and fixtures ignoring
* revert incorrect `::group::` change
* use `@cloudflare/vite-plugin-e2e-` as suggested in PR
* update import-example fixture package name
* ci: ensure existing-script-test-do-not-delete worker exists before C3 E2E tests
Add deployment step to create-cloudflare E2E workflow that deploys the
existing-script-test-do-not-delete worker before tests run. This ensures
the worker exists with the correct configuration (FOO=bar variable and
Hello World response) that the --existing-script test relies on.
Co-Authored-By: pbacondarwin@cloudflare.com <pete@bacondarwin.com>
* Address PR feedback: use wrangler.jsonc, handle fork PRs, check worker existence
- Convert wrangler.toml to wrangler.jsonc format as requested
- Add condition to skip deployment if TEST_CLOUDFLARE_ACCOUNT_ID is not set (handles fork PRs)
- Check if worker exists before deploying to avoid unnecessary deployments
Addresses feedback from @petebacondarwin in PR comments.
Co-Authored-By: pbacondarwin@cloudflare.com <pete@bacondarwin.com>
* Fix worker URL in curl existence check
Use the correct worker URL https://existing-script-test-do-not-delete.devprod-testing7928.workers.dev
as specified by @petebacondarwin in PR comment feedback.
Co-Authored-By: pbacondarwin@cloudflare.com <pete@bacondarwin.com>
* Update condition to check for API token instead of account ID
Change from env.TEST_CLOUDFLARE_ACCOUNT_ID to secrets.TEST_CLOUDFLARE_API_TOKEN
as suggested by @petebacondarwin in PR comment feedback.
Co-Authored-By: pbacondarwin@cloudflare.com <pete@bacondarwin.com>
* Trigger CI to pick up no-changeset-required label
This empty commit forces CI to re-run with the no-changeset-required label
that was added to the PR after the last commit.
Co-Authored-By: pbacondarwin@cloudflare.com <pete@bacondarwin.com>
* Fix GitHub Actions YAML syntax error in worker deployment condition
Replace invalid secrets.TEST_CLOUDFLARE_API_TOKEN check with proper fork detection
pattern used elsewhere in the repository.
Co-Authored-By: pbacondarwin@cloudflare.com <pete@bacondarwin.com>
* Refactor CI to use permanent test worker files from tools/test-workers/
- Move worker definition from inline CI creation to tools/test-workers/existing-script-test-do-not-delete/
- Update C3 E2E workflow to reference permanent worker files instead of creating temporary ones
- Add documentation for test workers in tools/README.md
- Create deploy-all.sh script for future extensibility
- Add .eslintignore to exclude test worker files from strict TypeScript linting
- Maintain same deployment logic with existence check and fork PR handling
Co-Authored-By: pbacondarwin@cloudflare.com <pete@bacondarwin.com>
* Address PR feedback: convert deployment script to TypeScript and use separate CI job
- Convert tools/test-workers/deploy-all.sh to TypeScript using Node.js patterns
- Move environment variable checks and fetch-based existence check into TypeScript script
- Refactor CI workflow to use separate 'deploy-test-workers' job with needs: dependency
- Use 'node -r esbuild-register' execution pattern following tools/package.json conventions
- Remove trigger_ci.md file which was only for triggering CI
- Maintain all existing functionality while improving maintainability
Co-Authored-By: pbacondarwin@cloudflare.com <pete@bacondarwin.com>
* Trigger fresh CI validation
Co-Authored-By: pbacondarwin@cloudflare.com <pete@bacondarwin.com>
* Remove temporary trigger file
Co-Authored-By: pbacondarwin@cloudflare.com <pete@bacondarwin.com>
* Fix linting issues: remove unused error variable and enable allowJs for test workers
Co-Authored-By: pbacondarwin@cloudflare.com <pete@bacondarwin.com>
* Add documentation for deploy-all script as requested in PR feedback
Co-Authored-By: pbacondarwin@cloudflare.com <pete@bacondarwin.com>
* Update README with deploy-all documentation
Co-Authored-By: pbacondarwin@cloudflare.com <pete@bacondarwin.com>
* Fix unused @ts-expect-error directive in changeset-version.test.ts
The directive was no longer needed after enabling allowJs in TypeScript config,
causing a compilation error in CI checks.
Co-Authored-By: pbacondarwin@cloudflare.com <pete@bacondarwin.com>
* use `pnpx` rather than `npx`
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: pbacondarwin@cloudflare.com <pete@bacondarwin.com>
* run more tests, more of the time
* Checks can be single-os
* syntax
* syntax
* add more labels
* fix group
* fix group
* skip node 24
* skip test
* Simplify PR validation
* fix tool tests
* re-skip 24
* address review comments
* match existing test names
* tighten up turbo dependencies to avoid having to manually build
* test: ensure that fixture packages always start with `fixture-`
* refactor: consolidate fixture package names with consistent `fixture-` prefix
Updates all 63 fixture package names to use a consistent naming scheme with logical categorization:
- Core workers: fixture-worker-basic, fixture-worker-ai, fixture-worker-typescript, etc.
- Pages functions: fixture-pages-functions, fixture-pages-workerjs, etc.
- Database/storage: fixture-d1-basic, fixture-secrets-store, etc.
- Module handling: fixture-import-wasm, fixture-no-bundle-import, etc.
- Development tools: fixture-interactive-dev, fixture-local-mode, etc.
Also updates test files that reference specific fixture package names to maintain compatibility.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* add CI_OS env var to the check run to ensure correct turbo remote caching
* fixup! refactor: consolidate fixture package names with consistent `fixture-` prefix
* fixup! test: ensure that fixture packages always start with `fixture-`
* revert unnecessary change
---------
Co-authored-by: Claude <noreply@anthropic.com>