Skip to content

Commit

Permalink
build: set permissions to deploy GH pages (#1724)
Browse files Browse the repository at this point in the history
### 📝 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.

### 🔗 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
  • Loading branch information
dariuszkuc authored Mar 15, 2023
1 parent eebff81 commit d14d64c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish-latest-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:

jobs:
publish-docs:
permissions:
contents: write
timeout-minutes: 10
runs-on: ubuntu-latest
if: github.repository == 'ExpediaGroup/graphql-kotlin'
Expand Down

0 comments on commit d14d64c

Please sign in to comment.