Skip to content

Conversation

fern-api[bot]
Copy link
Contributor

@fern-api fern-api bot commented Aug 29, 2025

This PR regenerates code to match the latest API Definition.

Comment on lines +20 to +30
runs-on: ubuntu-latest

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '20'
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Bootstrap
run: ./scripts/bootstrap
- name: Set up node
uses: actions/setup-node@v3

- name: Run tests
run: ./scripts/test
- name: Compile
run: yarn && yarn test

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

To fix this problem, you should add a permissions key to the workflow at either the root or job level. Since both jobs (compile and test) do not appear to require elevated permissions (they only perform source checkout, dependency install, build, and test), the minimal contents: read permission is sufficient. The best practice here is to add the permissions block at the top level of the workflow, so it applies to all jobs unless specifically overridden, thus adhering to the principle of least privilege.

To implement:

  • Edit .github/workflows/ci.yml
  • Add the following block directly below the name: field and above the on: block to set the minimally required permissions globally:
    permissions:
      contents: read

No further code or job modifications are necessary for this fix.

Suggested changeset 1
.github/workflows/ci.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/ci.yml b/.github/workflows/ci.yml
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1,4 +1,6 @@
 name: ci
+permissions:
+  contents: read
 
 on: [push]
 
EOF
@@ -1,4 +1,6 @@
name: ci
permissions:
contents: read

on: [push]

Copilot is powered by AI and may make mistakes. Always verify output.
@maticzav maticzav changed the base branch from main to development August 29, 2025 19:52
@maticzav maticzav merged commit d1c5317 into development Aug 29, 2025
4 of 5 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.

1 participant