-
Notifications
You must be signed in to change notification settings - Fork 321
ci: test extension through code-server and in ci #4827
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
83fc759 to
c5778ff
Compare
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '22' | ||
| - uses: pnpm/action-setup@v4 | ||
| with: | ||
| version: latest | ||
| - name: Install dependencies | ||
| run: pnpm install | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: '3.12' | ||
| - name: Install python dependencies | ||
| run: | | ||
| python -m venv .venv | ||
| source .venv/bin/activate | ||
| make install-dev | ||
| - name: Install code-server | ||
| run: curl -fsSL https://code-server.dev/install.sh | sh | ||
| - name: Install Playwright browsers | ||
| working-directory: ./vscode/extension | ||
| run: pnpm exec playwright install | ||
| - name: Run e2e tests | ||
| working-directory: ./vscode/extension | ||
| run: | | ||
| source ../../.venv/bin/activate | ||
| pnpm run test:e2e tests/stop.spec.ts |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 6 months ago
To fix the issue, we need to add a permissions block to the workflow file. This block should specify the least privileges required for the workflow to function correctly. Since the workflow primarily involves reading repository contents and running tests, the contents: read permission is sufficient. This block can be added at the root level of the workflow to apply to all jobs or within each job to define job-specific permissions.
-
Copy modified lines R11-R12
| @@ -10,2 +10,4 @@ | ||
| cancel-in-progress: true | ||
| permissions: | ||
| contents: read | ||
| jobs: |
442d063 to
95d78f7
Compare
95d78f7 to
0a1455e
Compare
themisvaltinos
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
No description provided.