-
Notifications
You must be signed in to change notification settings - Fork 25
Di/update eslint/qa 18486 #273
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: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '20' | ||
|
|
||
| - name: Install dependencies | ||
| run: npm ci | ||
|
|
||
| - name: Stylelint Check | ||
| run: npm run lint No newline at end of file |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 6 months ago
To resolve this issue, we will add a permissions block to the workflow at the root level to limit the permissions of the GITHUB_TOKEN. Since the workflow involves reading repository contents and running lint checks, the minimum required permission is contents: read. This will ensure that the workflow adheres to the principle of least privilege.
-
Copy modified lines R3-R5
| @@ -1,5 +1,8 @@ | ||
| name: Checks for /lib directory | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: |
# Conflicts: # lib/units/api/controllers/user.js # lib/units/api/helpers/generateToken.js # lib/units/websocket/index.js
No description provided.