Skip to content
Merged
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
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
pull_request:
branches: [main]

# Least-privilege default for all jobs: they only need to read the repo.
permissions:
contents: read

jobs:
test:
name: Test py${{ matrix.python-version }} on ${{ matrix.os }}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ on:
tags:
- "v*"

# Least-privilege default. Jobs that need more (OIDC publishing to
# PyPI, creating a GitHub Release) escalate in their own permissions block.
permissions:
contents: read

jobs:
build:
name: Build sdist + wheel
Expand Down
Loading