Skip to content

ci: set read-only workflow permissions for publish#377

Merged
kitsuyui merged 1 commit into
mainfrom
impl-baseline-ci-permissions-001
May 3, 2026
Merged

ci: set read-only workflow permissions for publish#377
kitsuyui merged 1 commit into
mainfrom
impl-baseline-ci-permissions-001

Conversation

@kitsuyui

@kitsuyui kitsuyui commented May 3, 2026

Copy link
Copy Markdown
Owner

Summary

Add explicit workflow and job permissions (contents: read) to the PyPI publish workflow to apply least privilege and keep publication behavior unchanged.

Why

The pypi-publish workflow currently relies on inherited token defaults.

Validation

  • uv sync --no-dev
  • uv run poe check

Baseline

baseline-ci-permissions-001

@github-actions

github-actions Bot commented May 3, 2026

Copy link
Copy Markdown

Code Metrics Report

main (39710f1) #377 (f8f9386) +/-
Coverage 100.0% 100.0% 0.0%
Code to Test Ratio 1:0.0 1:0.0 0.0
Test Execution Time 25s 26s +1s
Details
  |                     | main (39710f1) | #377 (f8f9386) | +/-  |
  |---------------------|----------------|----------------|------|
  | Coverage            |         100.0% |         100.0% | 0.0% |
  |   Files             |              6 |              6 |    0 |
  |   Lines             |            271 |            271 |    0 |
  |   Covered           |            271 |            271 |    0 |
  | Code to Test Ratio  |          1:0.0 |          1:0.0 |  0.0 |
  |   Code              |         694553 |         694553 |    0 |
  |   Test              |            453 |            453 |    0 |
- | Test Execution Time |            25s |            26s |  +1s |

Reported by octocov

@kitsuyui kitsuyui merged commit b5fe120 into main May 3, 2026
10 checks passed
@kitsuyui kitsuyui deleted the impl-baseline-ci-permissions-001 branch May 3, 2026 08:21
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