Skip to content

Commit

Permalink
Document GitHub Actions OIDC token permission
Browse files Browse the repository at this point in the history
  • Loading branch information
kiootic committed Jun 26, 2023
1 parent 8e9ec09 commit 35b72f1
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions docs/guides/features/github-actions-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,17 @@ To deploy from GitHub Actions, first configure the app to accept GitHub Actions
running in the repo as `deployer` permission. See [Access Control](./access-control.md)
guide for details.

After configuring access control, install `pageship` command in workflow and
deploy directly.
Then, enable OIDC token in GitHub Actions workflow by granting `id-token`
permission to workflow jobs:
```yaml
jobs:
<job-name>:
permissions:
contents: read
id-token: write
```

Finally, install `pageship` command in workflow and deploy directly.

```
docker run --rm \
Expand Down

0 comments on commit 35b72f1

Please sign in to comment.