From fc79f8c134d561511bfd4cd23ea34d4f42e479e6 Mon Sep 17 00:00:00 2001 From: Daniel Adeyemo Date: Tue, 15 Oct 2024 15:23:16 +0100 Subject: [PATCH 1/5] Update guide.mdx Make explicit the fact that when cloning your template, you can create your own Wrangler file to make your project compatible with Cloudflare as a template. I am making this edit because I was confused when reading the docs as to how to make take my NodeJS project and turn it into a worker without going through the fresh intall to learn what config files I need. --- src/content/docs/workers/get-started/guide.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/docs/workers/get-started/guide.mdx b/src/content/docs/workers/get-started/guide.mdx index c33b4e39dc1f4bd..6b01cac196e4865 100644 --- a/src/content/docs/workers/get-started/guide.mdx +++ b/src/content/docs/workers/get-started/guide.mdx @@ -75,10 +75,10 @@ npm create cloudflare@latest -- --template - `bitbucket:user/repo` (Bitbucket) - `gitlab:user/repo` (GitLab) -At a minimum, template folders must contain the following: +It's likely that you have an existing project that isn't configured as a Cloudflare template. Before your project can qualify as a valid template, the folder must contain the following files at least: - `package.json` -- `wrangler.toml` +- `wrangler.toml` [See this](/workers/wrangler/configuration/#sample-wranglertoml-configuration) for an example of a Wrangler configuration file - `src/` containing a worker script referenced from `wrangler.toml` From 48b40b1f2a9f6d467ed98f5c7625f2c718ceeb92 Mon Sep 17 00:00:00 2001 From: ToriLindsay Date: Tue, 29 Oct 2024 09:46:39 +0000 Subject: [PATCH 2/5] Rewrite --- src/content/docs/workers/get-started/guide.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/content/docs/workers/get-started/guide.mdx b/src/content/docs/workers/get-started/guide.mdx index 6b01cac196e4865..36fb9b0b0157a8b 100644 --- a/src/content/docs/workers/get-started/guide.mdx +++ b/src/content/docs/workers/get-started/guide.mdx @@ -58,7 +58,7 @@ In your project directory, C3 will have generated the following:
-In addition to creating new projects from C3 templates, C3 also supports creating new projects from Git repositories. To create a new project from a Git repository, open your terminal and run: +In addition to creating new projects from C3 templates, C3 also supports creating new projects from existing Git repositories. To create a new project from an existing Git repository, open your terminal and run: ```sh npm create cloudflare@latest -- --template @@ -75,10 +75,10 @@ npm create cloudflare@latest -- --template - `bitbucket:user/repo` (Bitbucket) - `gitlab:user/repo` (GitLab) -It's likely that you have an existing project that isn't configured as a Cloudflare template. Before your project can qualify as a valid template, the folder must contain the following files at least: +Your existing template folder must contain the following files, at a minimum, to meet the requirements for Cloudflare Workers: - `package.json` -- `wrangler.toml` [See this](/workers/wrangler/configuration/#sample-wranglertoml-configuration) for an example of a Wrangler configuration file +- `wrangler.toml` [See sample Wrangler configuration](/workers/wrangler/configuration/#sample-wranglertoml-configuration) - `src/` containing a worker script referenced from `wrangler.toml`
From 86e24d6659dba43a360033a83ed839a0992e49e7 Mon Sep 17 00:00:00 2001 From: chris rathana Date: Sun, 19 Oct 2025 11:41:25 +0700 Subject: [PATCH 3/5] Create dependency-review.yml --- .github/workflows/dependency-review.yml | 39 +++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/dependency-review.yml diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml new file mode 100644 index 000000000000000..534630e244e511e --- /dev/null +++ b/.github/workflows/dependency-review.yml @@ -0,0 +1,39 @@ +# Dependency Review Action +# +# This Action will scan dependency manifest files that change as part of a Pull Request, +# surfacing known-vulnerable versions of the packages declared or updated in the PR. +# Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable +# packages will be blocked from merging. +# +# Source repository: https://github.com/actions/dependency-review-action +# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement +name: 'Dependency review' +on: + pull_request: + branches: [ "patch-1" ] + +# If using a dependency submission action in this workflow this permission will need to be set to: +# +# permissions: +# contents: write +# +# https://docs.github.com/en/enterprise-cloud@latest/code-security/supply-chain-security/understanding-your-software-supply-chain/using-the-dependency-submission-api +permissions: + contents: read + # Write permissions for pull-requests are required for using the `comment-summary-in-pr` option, comment out if you aren't using this option + pull-requests: write + +jobs: + dependency-review: + runs-on: ubuntu-latest + steps: + - name: 'Checkout repository' + uses: actions/checkout@v4 + - name: 'Dependency Review' + uses: actions/dependency-review-action@v4 + # Commonly enabled options, see https://github.com/actions/dependency-review-action#configuration-options for all available options. + with: + comment-summary-in-pr: always + # fail-on-severity: moderate + # deny-licenses: GPL-1.0-or-later, LGPL-2.0-or-later + # retry-on-snapshot-warnings: true From e7768c36b7e9657ccd90ce089dfda8482e1ed5c0 Mon Sep 17 00:00:00 2001 From: chris rathana Date: Sun, 19 Oct 2025 11:58:50 +0700 Subject: [PATCH 4/5] Update publish-preview.yml --- .github/workflows/publish-preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index a8820ae842f5c7a..bc1321b9dd4c336 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -1,7 +1,7 @@ on: push: branches-ignore: - - production + - partch-1 concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} From 14f2bc5910d18e47c292625e7bd4f33588194e19 Mon Sep 17 00:00:00 2001 From: chris rathana Date: Sun, 19 Oct 2025 12:42:03 +0700 Subject: [PATCH 5/5] Update publish-preview.yml --- .github/workflows/publish-preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index bc1321b9dd4c336..1946f9b2b0c7d6f 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -1,7 +1,7 @@ on: push: branches-ignore: - - partch-1 + - partch-1-5 concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}