Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

15 changes: 0 additions & 15 deletions .eslintrc-examples.js

This file was deleted.

26 changes: 0 additions & 26 deletions .eslintrc.js

This file was deleted.

20 changes: 20 additions & 0 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"cliVersion": "1.10.2",
"generatorName": "fernapi/fern-typescript-node-sdk",
"generatorVersion": "3.32.0",
"generatorConfig": {
"allowCustomFetcher": true,
"enableInlineTypes": true,
"includeApiReference": true,
"namespaceExport": "Deepgram",
"noSerdeLayer": true,
"shouldGenerateWebsocketClients": true,
"skipResponseValidation": true,
"fileResponseType": "binary-response",
"generateWireTests": true,
"extraDevDependencies": {
"playwright": "^1.56.1",
"@playwright/test": "^1.56.1"
}
}
}
10 changes: 10 additions & 0 deletions .fernignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Specify files that shouldn't be modified by Fern

# Manual tests used in development
tests/manual/

# README has been modified since the generated default output
README.md

# We created our own websocket-reference.md because Fern didn't generate websocket clients in reference.md
websocket-reference.md
6 changes: 0 additions & 6 deletions .github/CODEOWNERS

This file was deleted.

32 changes: 0 additions & 32 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

6 changes: 0 additions & 6 deletions .github/ISSUE_TEMPLATE/config.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/ISSUE_TEMPLATE/feature-request.md

This file was deleted.

30 changes: 0 additions & 30 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

27 changes: 0 additions & 27 deletions .github/PULL_REQUEST_TEMPLATE/pull_request_template.md

This file was deleted.

68 changes: 0 additions & 68 deletions .github/workflows/CI.yml

This file was deleted.

74 changes: 0 additions & 74 deletions .github/workflows/browser-build-test.yml

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: ci

on: [push]

jobs:
compile:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Set up node
uses: actions/setup-node@v4

- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Install dependencies
run: pnpm install

- name: Compile
run: pnpm build

test:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Set up node
uses: actions/setup-node@v4

- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Install dependencies
run: pnpm install

- name: Test
run: pnpm test
Comment on lines +26 to +42

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 2 months ago

To address the issue, add a permissions block at the root of the workflow file (.github/workflows/ci.yml) to restrict the GitHub Actions token. Since none of the jobs require write access (they just check out code, install dependencies, build, and run tests), the minimal permission contents: read suffices. Place this permissions entry beneath the name: and on: keys but above jobs:. No additional imports, dependencies, or code changes are required.

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,6 +1,8 @@
 name: ci
 
 on: [push]
+permissions:
+  contents: read
 
 jobs:
   compile:
EOF
@@ -1,6 +1,8 @@
name: ci

on: [push]
permissions:
contents: read

jobs:
compile:
Copilot is powered by AI and may make mistakes. Always verify output.
Loading
Loading