Skip to content
Open
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/python-sdk-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

permissions:
contents: read
pull-requests: write

Comment on lines 8 to 11
Copy link

Copilot AI Apr 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The workflow grants pull-requests: write at the workflow level, which also applies to push runs. If the only write action is the PR coverage comment step, consider scoping elevated permissions to that job (or to pull_request events only) to follow least-privilege for the GITHUB_TOKEN.

Copilot uses AI. Check for mistakes.
jobs:
check:
Expand All @@ -25,4 +26,10 @@ jobs:
- run: uv run ruff format --check .
- run: uv run pyright
- run: uv run pytest --cov=decibel --cov-report=xml --cov-report=term
- name: Coverage report on PR
if: matrix.python-version == '3.11' && github.event_name == 'pull_request'
uses: orgoro/coverage@v3.2
with:
coverageFile: coverage.xml
token: ${{ secrets.GITHUB_TOKEN }}
- run: uv build
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ select = [
"TC", # flake8-type-checking
]

[tool.ruff.lint.per-file-ignores]
"tests/**" = ["SIM117"] # Nested with statements are idiomatic in test mocking

[tool.ruff.lint.flake8-bugbear]
extend-immutable-calls = ["pydantic.Field"]

Expand Down
Loading
Loading