Skip to content

Conversation

@prishaakapasi
Copy link

No description provided.

@linear
Copy link

linear bot commented Nov 13, 2025

@vercel
Copy link

vercel bot commented Nov 13, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
stuff Ready Ready Preview Comment Nov 13, 2025 2:10am

Comment on lines 5 to 25
name: Run linters
runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v5

- name: Set up Node.js
uses: actions/setup-node@v5
with:
node-version: 22

# ESLint and Prettier must be in `package.json`
- name: Install Node.js dependencies
run: yarn install --frozen-lockfile

- name: Run linters
uses: wearerequired/lint-action@v2.3.0
with:
eslint: true
prettier: true

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 21 days ago

The best way to fix the problem is to add the permissions key with the appropriate least-privilege value. Since this workflow only checks out code and runs linters (it does not write to the repository, open issues, or perform other administrative tasks), it only needs contents: read.
Add the following block at the workflow (top) level, right after the name: or before on: keys:

permissions:
  contents: read

Alternatively, the permissions block can be placed at the job level (inside run-linters:), but top-level is typically preferred so that all jobs get this default restriction.

This change is fully contained within .github/workflows/lint.yml and does not require imports or additional code elsewhere.


Suggested changeset 1
.github/workflows/lint.yml

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.yml b/.github/workflows/lint.yml
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -1,4 +1,6 @@
 name: Lint
+permissions:
+  contents: read
 on: pull_request
 jobs:
     run-linters:
EOF
@@ -1,4 +1,6 @@
name: Lint
permissions:
contents: read
on: pull_request
jobs:
run-linters:
Copilot is powered by AI and may make mistakes. Always verify output.
@jfmath04 jfmath04 changed the base branch from main to preview November 18, 2025 22:03
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.

2 participants