Skip to content

Commit 8e484d4

Browse files
committed
ci: add permissions for read access in CI and publish workflows
1 parent eda888b commit 8e484d4

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
branches:
77
- main
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
quality:
1114
runs-on: ubuntu-latest

.github/workflows/publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
tags:
66
- "v*"
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
build:
1013
runs-on: ubuntu-latest
@@ -25,8 +28,6 @@ jobs:
2528
needs: build
2629
runs-on: ubuntu-latest
2730
environment: pypi
28-
permissions:
29-
id-token: write # required for OIDC trusted publishing
3031

3132
steps:
3233
- uses: actions/download-artifact@v4
@@ -36,3 +37,5 @@ jobs:
3637

3738
- name: Publish to PyPI
3839
uses: pypa/gh-action-pypi-publish@release/v1
40+
with:
41+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)