Skip to content

Conversation

@DaniilSmirnov
Copy link

No description provided.

@DaniilSmirnov DaniilSmirnov requested a review from a team as a code owner July 11, 2025 17:43
Comment on lines +12 to +26
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

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}

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.

Suggested changeset 1
.github/workflows/lint_lib.yaml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/lint_lib.yaml b/.github/workflows/lint_lib.yaml
--- a/.github/workflows/lint_lib.yaml
+++ b/.github/workflows/lint_lib.yaml
@@ -1,5 +1,8 @@
 name: Checks for /lib directory
 
+permissions:
+  contents: read
+
 on:
   pull_request:
     branches:
EOF
@@ -1,5 +1,8 @@
name: Checks for /lib directory

permissions:
contents: read

on:
pull_request:
branches:
Copilot is powered by AI and may make mistakes. Always verify output.
# Conflicts:
#	lib/units/api/controllers/user.js
#	lib/units/api/helpers/generateToken.js
#	lib/units/websocket/index.js
@DaniilSmirnov DaniilSmirnov merged commit cf4b560 into master Jul 14, 2025
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants