From d867599e0c0e9b80d6ec39576af848ecfbb391ba Mon Sep 17 00:00:00 2001 From: Marten Chaillet <58044494+McHaillet@users.noreply.github.com> Date: Fri, 2 Aug 2024 19:00:34 +0200 Subject: [PATCH 1/3] update workflow permission to write github pages --- .github/workflows/deploy-docs.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 3a9535e5..e0624ed8 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -11,6 +11,8 @@ jobs: deploy-book: if: github.repository == 'SBC-Utrecht/pytom-match-pick' runs-on: ubuntu-latest + permissions: + pages: write steps: - name: Checkout repository uses: actions/checkout@v4 From 51baf92c17dd256c01dc996a45e0b54ed78b83d4 Mon Sep 17 00:00:00 2001 From: Marten Chaillet <58044494+McHaillet@users.noreply.github.com> Date: Fri, 2 Aug 2024 20:00:35 +0200 Subject: [PATCH 2/3] Update deploy-docs.yml --- .github/workflows/deploy-docs.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index e0624ed8..d56fcb5b 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -13,6 +13,7 @@ jobs: runs-on: ubuntu-latest permissions: pages: write + contents: write steps: - name: Checkout repository uses: actions/checkout@v4 From 38e3962ab7d274ccfdd76db31d5a04e7875311ab Mon Sep 17 00:00:00 2001 From: Marten Chaillet <58044494+McHaillet@users.noreply.github.com> Date: Fri, 2 Aug 2024 20:10:10 +0200 Subject: [PATCH 3/3] give contents write permission --- .github/workflows/deploy-docs.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index d56fcb5b..ba6ab3a5 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -5,15 +5,15 @@ on: branches: - main +permissions: + contents: write + # This job installs dependencies, builds the docs, and pushes it to # the `gh-pages` branch of the same repository. jobs: deploy-book: if: github.repository == 'SBC-Utrecht/pytom-match-pick' runs-on: ubuntu-latest - permissions: - pages: write - contents: write steps: - name: Checkout repository uses: actions/checkout@v4