Skip to content

feat: light token kit#2289

Draft
sergeytimoshin wants to merge 4 commits intomainfrom
sergey/feat-light-token-kit
Draft

feat: light token kit#2289
sergeytimoshin wants to merge 4 commits intomainfrom
sergey/feat-light-token-kit

Conversation

@sergeytimoshin
Copy link
Contributor

No description provided.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 14, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch sergey/feat-light-token-kit

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Comment on lines +32 to +67
name: token-kit-tests
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest

steps:
- name: Checkout sources
uses: actions/checkout@v6

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false

- name: Install just
uses: extractions/setup-just@v2

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build token-sdk
run: cd js/token-sdk && pnpm build

- name: Run token-sdk unit tests
run: just js test-token-sdk

- name: Run token-client unit tests
run: just js test-token-client

- name: Lint token-sdk
run: just js lint-token-kit

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 about 14 hours ago

In general, fix this by explicitly declaring a minimal permissions block either at the workflow root (applies to all jobs) or on the specific job. Since this workflow only checks out code and runs local build/test/lint commands, it only needs read access to repository contents. We can safely set permissions: contents: read for the job (or at the top level) without changing any existing behavior.

The single best fix here is to add a permissions block to the token-kit-tests job definition in .github/workflows/token-kit.yml, just under the job name (or runs-on) and before steps. Concretely, we will insert:

    permissions:
      contents: read

This does not require any imports or additional methods, and it keeps the change localized to the shown snippet. No other files or sections need modification.

Suggested changeset 1
.github/workflows/token-kit.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/token-kit.yml b/.github/workflows/token-kit.yml
--- a/.github/workflows/token-kit.yml
+++ b/.github/workflows/token-kit.yml
@@ -32,6 +32,8 @@
     name: token-kit-tests
     if: github.event.pull_request.draft == false
     runs-on: ubuntu-latest
+    permissions:
+      contents: read
 
     steps:
       - name: Checkout sources
EOF
@@ -32,6 +32,8 @@
name: token-kit-tests
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
permissions:
contents: read

steps:
- name: Checkout sources
Copilot is powered by AI and may make mistakes. Always verify output.
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