From 810606b14bba5e688a247fc08900925b67c2a6cc Mon Sep 17 00:00:00 2001 From: Okhan Okbay Date: Tue, 19 Sep 2023 16:38:42 +0100 Subject: [PATCH] Update permissions --- .github/workflows/generate-jazzy-docs.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/generate-jazzy-docs.yml b/.github/workflows/generate-jazzy-docs.yml index 42e22cd01..a356f319c 100644 --- a/.github/workflows/generate-jazzy-docs.yml +++ b/.github/workflows/generate-jazzy-docs.yml @@ -16,8 +16,9 @@ concurrency: jobs: generate-jazzy-docs: name: Generate Docs - environment: DocCreation runs-on: macos-latest + permissions: + contents: write steps: - name: Checkout @@ -58,10 +59,10 @@ jobs: - name: Create Branch env: BRANCH_NAME: "update/jazzy-docs" - GITHUB_TOKEN: ${{ secrets.DOC_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | git branch $BRANCH_NAME git checkout $BRANCH_NAME git add . git commit -m "Update jazzy docs" - git push -u origin $BRANCH_NAME + git push -u origin $BRANCH_NAME --force