Conversation
Co-authored-by: James Hunt <jameshunt@microsoft.com>
Co-authored-by: James Hunt <jameshunt@microsoft.com>
… bug in `LiveCanvas`, and upgraded Fluid version (#775)
Co-authored-by: James Hunt <jameshunt@microsoft.com>
Co-authored-by: Ryan Bliss <smile@ryanbliss.me> Co-authored-by: James Hunt <jameshunt@microsoft.com>
…bo package (#781) Co-authored-by: James Hunt <jameshunt@microsoft.com> Co-authored-by: Ryan Bliss <smile@ryanbliss.me>
Co-authored-by: James Hunt <jameshunt@microsoft.com>
Co-authored-by: James Hunt <jameshunt@microsoft.com>
Co-authored-by: James Hunt <jameshunt@microsoft.com>
Co-authored-by: James Hunt <jameshunt@microsoft.com>
…fter npm install, other V2 prep (#786) Co-authored-by: James Hunt <jameshunt@microsoft.com>
Co-authored-by: James Hunt <jameshunt@microsoft.com>
Co-authored-by: James Hunt <jameshunt@microsoft.com>
Co-authored-by: James Hunt <jameshunt@microsoft.com> Co-authored-by: Ryan Bliss <smile@ryanbliss.me>
…m support (#791) Co-authored-by: James Hunt <jameshunt@microsoft.com>
…0.0, removed references to live-share-turbo
Co-authored-by: James Hunt <jameshunt@microsoft.com>
Co-authored-by: James Hunt <jameshunt@microsoft.com>
Co-authored-by: James Hunt <jameshunt@microsoft.com>
Co-authored-by: James Hunt <jameshunt@microsoft.com>
Co-authored-by: huntj88 <huntj88@gmail.com> Co-authored-by: James Hunt <jameshunt@microsoft.com>
Co-authored-by: huntj88 <huntj88@gmail.com> Co-authored-by: Ryan Bliss <smile@ryanbliss.me>
Co-authored-by: James Hunt <jameshunt@microsoft.com>
Co-authored-by: James Hunt <jameshunt@microsoft.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: huntj88 <10103298+huntj88@users.noreply.github.com>
Co-authored-by: James Hunt <jameshunt@microsoft.com>
| runs-on: ubuntu-latest | ||
|
|
||
| strategy: | ||
| matrix: | ||
| node-version: [22.x, 24.x] | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Use Node.js ${{ matrix.node-version }} | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
| cache: "npm" | ||
| - run: npm --loglevel verbose ci --ignore-scripts | ||
| timeout-minutes: 20 | ||
|
|
||
| - run: npm install jest | ||
| working-directory: samples/javascript/02.react-video | ||
|
|
||
| - name: "build packages and samples" | ||
| run: npm run build | ||
|
|
||
| # TODO: get scenario_test.sh working | ||
|
|
||
| # - name: "test 02.react-video sample" | ||
| # shell: "bash" | ||
| # run: sh ../../../.github/workflows/scenario_test.sh | ||
| # working-directory: samples/javascript/02.react-video |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 2 days ago
Add an explicit permissions block to the workflow so the GITHUB_TOKEN is constrained to least privilege. The best fix here is to add it at the workflow root (top-level), since there is only one job and no sign of differing permission needs per job.
In .github/workflows/live-share-build-samples.yaml, insert:
permissions:
contents: readright after the trigger section (on: block) and before jobs:. This preserves existing behavior while explicitly limiting token access to read-only repository contents, which is sufficient for checkout/build in this snippet.
| @@ -7,6 +7,9 @@ | ||
| branches: [main, mainv2, "user/**", "copilot/**"] | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest |
| runs-on: ubuntu-latest | ||
|
|
||
| strategy: | ||
| matrix: | ||
| node-version: [22.x, 24.x] | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Use Node.js ${{ matrix.node-version }} | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
| cache: "npm" | ||
|
|
||
| - run: npm --loglevel verbose ci --ignore-scripts | ||
| timeout-minutes: 20 | ||
|
|
||
| - name: "check formatting" | ||
| run: "bash checkFormatting.sh" | ||
| working-directory: .github/workflows |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 2 days ago
Add an explicit permissions block to the workflow, ideally at the root so it applies to all jobs unless overridden. For this workflow, the minimal and appropriate permission is:
contents: read
This preserves current functionality (actions/checkout and reading repository content) while enforcing least privilege.
Edit .github/workflows/live-share-formatting.yaml by inserting the permissions block between the trigger section and jobs:.
No imports, methods, or dependency changes are needed.
| @@ -7,6 +7,9 @@ | ||
| branches: [main, mainv2, "user/**", "copilot/**"] | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest |
| runs-on: ubuntu-latest | ||
|
|
||
| strategy: | ||
| matrix: | ||
| node-version: [22.x, 24.x] | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Use Node.js ${{ matrix.node-version }} | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
| cache: "npm" | ||
| - run: npm --loglevel verbose ci --ignore-scripts | ||
| timeout-minutes: 20 | ||
|
|
||
| - run: npm run prepare # will trigger a build of all packages | ||
|
|
||
| - name: "test live-share" | ||
| run: npm run test | ||
| working-directory: packages/live-share | ||
|
|
||
| - name: "test live-share-canvas" | ||
| run: npm run test | ||
| working-directory: packages/live-share-canvas | ||
|
|
||
| - name: "test live-share-media" | ||
| run: npm run test | ||
| working-directory: packages/live-share-media |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 2 days ago
Add an explicit permissions block at the workflow root so it applies to all jobs (including build) unless overridden. For this workflow, the minimal required scope is:
contents: read
This preserves existing functionality while preventing unintended broader token privileges if defaults change.
Change needed in:
.github/workflows/live-share-test-packages.yaml- Insert
permissions:between theon:section andjobs:section.
No new imports, methods, or dependencies are required.
| @@ -7,6 +7,9 @@ | ||
| branches: [main, mainv2, "user/**", "copilot/**"] | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest |
| runs-on: ubuntu-latest | ||
|
|
||
| strategy: | ||
| matrix: | ||
| node-version: [22.x, 24.x] | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Use Node.js ${{ matrix.node-version }} | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
| cache: "npm" | ||
| - run: npm --loglevel verbose ci --ignore-scripts | ||
| timeout-minutes: 20 | ||
|
|
||
| - run: npm run prepare # will trigger a build of all packages | ||
|
|
||
| - name: "test live-share with cjs app" | ||
| run: npm run test | ||
| working-directory: internal/usage-test/cjs-test | ||
|
|
||
| - name: "test live-share with esm app" | ||
| run: npm run test | ||
| working-directory: internal/usage-test/esm-test | ||
|
|
||
| - uses: pnpm/action-setup@v4 | ||
| name: Install pnpm for next step | ||
| with: | ||
| version: 9 | ||
| run_install: false | ||
| - name: "test live-share with pnpm typescript esm app" | ||
| run: pnpm run test | ||
| working-directory: internal/usage-test/pnpm-test |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 2 days ago
Add an explicit permissions block in .github/workflows/live-share-test-usage.yaml at the workflow root (top-level, alongside name and on) so it applies to all jobs unless overridden.
For this workflow, the minimal required permission is:
contents: read
This preserves current behavior (checkout and test execution) while ensuring the token cannot gain broader rights from external defaults.
| @@ -7,6 +7,9 @@ | ||
| branches: [main, mainv2, "user/**", "copilot/**"] | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest |
No description provided.