Skip to content

Commit bdf608a

Browse files
committed
fix(ci): give publish workflow required permissions
1 parent 0533acc commit bdf608a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/pythonpublish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
build:
2626
runs-on: ubuntu-latest
2727
needs: tests
28+
permissions:
29+
contents: read
2830
steps:
2931
- uses: actions/checkout@v5
3032
with:
@@ -89,11 +91,13 @@ jobs:
8991
runs-on: ubuntu-latest
9092
needs:
9193
- github-release
94+
permissions:
95+
contents: write # to deploy to gh-pages
9296
steps:
9397
- uses: actions/checkout@v5
9498
with:
9599
fetch-depth: 0 # fetch all commits/branches
96-
persist-credentials: false
100+
persist-credentials: true # so we can deploy to gh-pages
97101
- name: Set up Python
98102
uses: actions/setup-python@v6
99103
with:

0 commit comments

Comments
 (0)