-
Notifications
You must be signed in to change notification settings - Fork 2
🌿 Fern Regeneration -- August 31, 2025 #15
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
Conversation
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
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 20 days ago
To safely fix the problem, add a permissions
block to restrict the GITHUB_TOKEN's abilities to the minimal set required for these jobs. Since the workflow consists of jobs that only build and test the code, and do not write to the repository or interact with issues/pull requests, the contents: read
permission is sufficient. Place this block at the root of the workflow, above jobs:
, so it applies to all jobs by default. No other code changes or imports are necessary—this is a YAML configuration update.
-
Copy modified lines R4-R5
@@ -1,6 +1,8 @@ | ||
name: ci | ||
|
||
on: [push] | ||
permissions: | ||
contents: read | ||
jobs: | ||
compile: | ||
runs-on: ubuntu-latest |
This PR regenerates code to match the latest API Definition.