Skip to content

Conversation

fern-api[bot]
Copy link
Contributor

@fern-api fern-api bot commented Sep 2, 2025

This PR regenerates code to match the latest API Definition.

Comment on lines +22 to +37
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Rye
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Bootstrap poetry
run: |
curl -sSf https://rye.astral.sh/get | bash
echo "$HOME/.rye/shims" >> $GITHUB_PATH
env:
RYE_VERSION: '0.44.0'
RYE_INSTALL_OPTION: '--yes'

- name: Bootstrap
run: ./scripts/bootstrap
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
- name: Install dependencies
run: poetry install

- name: Run tests
run: ./scripts/test
- name: Test
run: poetry run pytest -rP .

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

The best way to fix this problem is to explicitly set the minimum required permissions for the workflow jobs that use GITHUB_TOKEN. In this particular case, neither of the jobs (compile or test) seems to require any write access—they only check out code, set up tools, install dependencies, and run static analysis or tests. Therefore, only contents: read is necessary. To do this, add a permissions: block at the root of the workflow file (just below the name: key and before on:) so it applies to all jobs. No additional imports or method definitions are required—just a YAML configuration change.

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]
 jobs:
EOF
@@ -1,4 +1,6 @@
name: ci
permissions:
contents: read

on: [push]
jobs:
Copilot is powered by AI and may make mistakes. Always verify output.
@maticzav maticzav changed the base branch from main to with-fern September 2, 2025 07:37
@maticzav maticzav merged commit e3a6071 into with-fern Sep 2, 2025
1 of 2 checks passed
@maticzav maticzav deleted the fern-bot/2025-09-02T06-40Z branch September 2, 2025 07:38
maticzav added a commit that referenced this pull request Sep 2, 2025
* 🌿 Fern Regeneration -- September 2, 2025 (#23)

* SDK regeneration

* stash

---------

Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
Co-authored-by: Matic Zavadlal <[email protected]>

* SDK regeneration

* SDK regeneration

* stash

* placeholders

* fixes

* fixes

* Update client.py

* Update client.py

* add implementation

* fixes

* fixes

* fixes

---------

Co-authored-by: fern-api[bot] <115122769+fern-api[bot]@users.noreply.github.com>
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