Skip to content

Commit 457bfc7

Browse files
Update build_docs.yml to include permissions
Added permissions to allow GITHUB_TOKEN to push changes.
1 parent 1ec3478 commit 457bfc7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/build_docs.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Build Sphinx Documentation
22

3+
permissions:
4+
contents: write # allow GITHUB_TOKEN to push repo contents
5+
36
on:
47
push:
58
branches:
@@ -16,6 +19,8 @@ jobs:
1619
steps:
1720
- name: Checkout repository
1821
uses: actions/checkout@v5
22+
with:
23+
persist-credentials: true # allow `git push` to authenticate with GITHUB_TOKEN
1924

2025
- name: Set up Python
2126
uses: actions/setup-python@v6
@@ -66,4 +71,4 @@ jobs:
6671
6772
# Push the changes
6873
git push origin gh-pages --force
69-
74+

0 commit comments

Comments
 (0)