-
Notifications
You must be signed in to change notification settings - Fork 4
🌿 Fern Regeneration -- August 31, 2025 #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Specify files that shouldn't be modified by Fern |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,88 +1,30 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches-ignore: | ||
- 'generated' | ||
- 'codegen/**' | ||
- 'integrated/**' | ||
- 'stl-preview-head/**' | ||
- 'stl-preview-base/**' | ||
pull_request: | ||
branches-ignore: | ||
- 'stl-preview-head/**' | ||
- 'stl-preview-base/**' | ||
name: ci | ||
|
||
jobs: | ||
lint: | ||
timeout-minutes: 10 | ||
name: lint | ||
runs-on: ${{ github.repository == 'stainless-sdks/browser-use-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
on: [push] | ||
|
||
- name: Bootstrap | ||
run: ./scripts/bootstrap | ||
|
||
- name: Check types | ||
run: ./scripts/lint | ||
jobs: | ||
compile: | ||
runs-on: ubuntu-latest | ||
|
||
build: | ||
timeout-minutes: 5 | ||
name: build | ||
runs-on: ${{ github.repository == 'stainless-sdks/browser-use-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork | ||
permissions: | ||
contents: read | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
- name: Set up node | ||
uses: actions/setup-node@v3 | ||
|
||
- name: Bootstrap | ||
run: ./scripts/bootstrap | ||
- name: Compile | ||
run: yarn && yarn build | ||
|
||
- name: Check build | ||
run: ./scripts/build | ||
|
||
- name: Get GitHub OIDC Token | ||
if: github.repository == 'stainless-sdks/browser-use-typescript' | ||
id: github-oidc | ||
uses: actions/github-script@v6 | ||
with: | ||
script: core.setOutput('github_token', await core.getIDToken()); | ||
|
||
- name: Upload tarball | ||
if: github.repository == 'stainless-sdks/browser-use-typescript' | ||
env: | ||
URL: https://pkg.stainless.com/s | ||
AUTH: ${{ steps.github-oidc.outputs.github_token }} | ||
SHA: ${{ github.sha }} | ||
run: ./scripts/utils/upload-artifact.sh | ||
test: | ||
Check warningCode 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}
|
||
timeout-minutes: 10 | ||
name: test | ||
runs-on: ${{ github.repository == 'stainless-sdks/browser-use-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork | ||
steps: | ||
- uses: actions/checkout@v4 | ||
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 | ||
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,3 @@ | ||
.prism.log | ||
node_modules | ||
yarn-error.log | ||
codegen.log | ||
Brewfile.lock.json | ||
dist | ||
dist-deno | ||
/*.tgz | ||
.idea/ | ||
|
||
.env | ||
.DS_Store | ||
/dist |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
node_modules | ||
src | ||
tests | ||
.gitignore | ||
.github | ||
.fernignore | ||
.prettierrc.yml | ||
tsconfig.json | ||
yarn.lock | ||
pnpm-lock.yaml |
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
tabWidth: 4 | ||
printWidth: 120 |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Copilot Autofix
AI 20 days ago
To resolve the issue, the
.github/workflows/ci.yml
workflow should explicitly define apermissions
block at the root of the workflow (abovejobs:
). This block should specify the minimum required permissions for all jobs. Given the jobs in this workflow only check out code and run Node setup and build/test commands (i.e., they do not interact with issues, pull requests, deployments, or other resources), the minimal permission required iscontents: read
. This will restrict the GITHUB_TOKEN to only be able to read repository contents, and will not allow write or administrative operations. No additional imports or setup is needed; just add thepermissions:
block to the top-level workflow YAML structure, immediately after the workflow name and beforejobs:
.