-
Notifications
You must be signed in to change notification settings - Fork 2
feat: add demo app #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| runs-on: ubuntu-latest | ||
| name: Deploy Web Examples | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup pnpm | ||
| uses: pnpm/action-setup@v4 | ||
| with: | ||
| version: 9 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '18' | ||
| cache: 'pnpm' | ||
| cache-dependency-path: '**/pnpm-lock.yaml' | ||
|
|
||
| - name: Install Dependencies | ||
| run: pnpm install --frozen-lockfile | ||
| working-directory: ./ | ||
|
|
||
| - name: Build | ||
| run: pnpm run build | ||
| working-directory: ./ | ||
|
|
||
| - name: Deploy to Cloudflare Pages | ||
| uses: cloudflare/wrangler-action@v3 | ||
| with: | ||
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | ||
| wranglerVersion: '4.42.1' | ||
| command: pages deploy ./dist --project-name=demo-app | ||
| workingDirectory: ./demo-app |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI about 13 hours ago
To fix the problem, we should add an explicit permissions block to the workflow file. The best way is to add it at the workflow root (just below the name: key) so that it applies to all jobs in the workflow unless specifically overridden in a job. For this deployment workflow, setting contents: read is generally sufficient, as the workflow steps only check out the code and deploy it externally; they do not write to the repository, create issues, etc. The change must be made to .github/workflows/deploy.yml on a line after name: Deploy Web Examples and before on:.
-
Copy modified lines R2-R3
| @@ -1,4 +1,6 @@ | ||
| name: Deploy Web Examples | ||
| permissions: | ||
| contents: read | ||
|
|
||
| on: | ||
| push: |
Deploying react-examples with
|
| Latest commit: |
41990fd
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://7581fd44.react-examples.pages.dev |
Deploying angular-examples with
|
| Latest commit: |
41990fd
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://74d55ea8.angular-examples-a7h.pages.dev |
Deploying html-examples with
|
| Latest commit: |
41990fd
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://942dd7e0.html-examples-c69.pages.dev |
Deploying examples with
|
| Latest commit: |
a35f7ae
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://0afd0468.examples-120.pages.dev |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| 🔵 In progress View logs |
examples | 4ef5669 | Nov 05 2025, 07:46 AM |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| 🔵 In progress View logs |
angular-examples | 4ef5669 | Nov 05 2025, 07:46 AM |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
react-examples | e7c97e7 | Nov 05 2025, 11:32 AM |
No description provided.