Skip to content

Commit e655d8b

Browse files
ci: add write permissions to doc deploy jobs (#2302)
Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent d8b160c commit e655d8b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/ci_cd.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -938,8 +938,10 @@ jobs:
938938
upload_dev_docs:
939939
name: Upload dev documentation
940940
if: github.ref == 'refs/heads/main'
941-
runs-on: ubuntu-latest
942941
needs: [package]
942+
runs-on: ubuntu-latest
943+
permissions:
944+
contents: write
943945
steps:
944946
- name: Deploy the latest documentation
945947
uses: ansys/actions/doc-deploy-dev@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4
@@ -952,8 +954,10 @@ jobs:
952954
upload_docs_release:
953955
name: Upload release documentation
954956
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
955-
runs-on: ubuntu-latest
956957
needs: [release, release-pypi]
958+
runs-on: ubuntu-latest
959+
permissions:
960+
contents: write
957961
steps:
958962
- name: Deploy the stable documentation
959963
uses: ansys/actions/doc-deploy-stable@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add write permissions to doc deploy jobs

0 commit comments

Comments
 (0)