From d14d64c9bdb8308f068fead7b0f737a99b375365 Mon Sep 17 00:00:00 2001 From: Dariusz Kuc <9501705+dariuszkuc@users.noreply.github.com> Date: Wed, 15 Mar 2023 17:30:24 -0500 Subject: [PATCH] build: set permissions to deploy GH pages (#1724) ### :pencil: Description We are using https://github.com/peaceiris/actions-gh-pages which requires `contents: write` permission. We could potentially refactor this to use more generic `actions/upload-pages-artifact` + `actions/deploy-pages` that require more scoped permissions but unsure how much value it gets us. ### :link: Related Issues We won't be able to publish new GH pages until this is fixed -> see https://github.com/ExpediaGroup/graphql-kotlin/actions/runs/4427684966/jobs/7765655027#step:6:1258 --- .github/workflows/publish-latest-docs.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/publish-latest-docs.yml b/.github/workflows/publish-latest-docs.yml index 2855658c6d..f0459b9684 100644 --- a/.github/workflows/publish-latest-docs.yml +++ b/.github/workflows/publish-latest-docs.yml @@ -9,6 +9,8 @@ on: jobs: publish-docs: + permissions: + contents: write timeout-minutes: 10 runs-on: ubuntu-latest if: github.repository == 'ExpediaGroup/graphql-kotlin'