-
-
Notifications
You must be signed in to change notification settings - Fork 168
(test publishing @vitejs/plugin-rsc) #523
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
Conversation
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 22 | ||
- run: corepack enable | ||
- run: pnpm i | ||
- run: pnpm build | ||
- run: pnpm -C packages/plugin-rsc tsc | ||
- run: pnpm -C packages/plugin-rsc test | ||
|
||
test-e2e: |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI about 1 month ago
To fix the issue, add a permissions
block to the root of the workflow file. This block will apply to all jobs in the workflow unless overridden by job-specific permissions
. Based on the workflow's operations, the minimal permissions required are contents: read
. This ensures that the GITHUB_TOKEN
has only read access to repository contents, reducing the risk of unintended write operations.
-
Copy modified lines R2-R3
@@ -1,2 +1,4 @@ | ||
name: ci-rsc | ||
permissions: | ||
contents: read | ||
"on": |
name: test-rsc (${{ matrix.os }} / ${{ matrix.browser }}) | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
# TODO: shard? | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
browser: [chromium] | ||
include: | ||
- os: ubuntu-latest | ||
browser: firefox | ||
- os: macos-latest | ||
browser: webkit | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 22 | ||
- run: corepack enable | ||
- run: pnpm i | ||
- run: pnpm build | ||
- run: pnpm -C packages/plugin-rsc exec playwright install ${{ matrix.browser }} | ||
- run: pnpm -C packages/plugin-rsc test-e2e-ci --project=${{ matrix.browser }} | ||
env: | ||
TEST_ISOLATED: true | ||
- uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: test-results-${{ matrix.os }}-${{ matrix.browser }} | ||
path: | | ||
packages/plugin-rsc/test-results |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Alpha is released from this branch. |
Description
Recreating #521 as non-fork branch.