Skip to content

Commit

Permalink
Merge pull request #1092 from diggerhq/docs/actions-permission-for-pl…
Browse files Browse the repository at this point in the history
…an-storage

Docs: add actions:write permission for plan persistence
  • Loading branch information
ZIJ authored Jan 30, 2024
2 parents a3246ad + d8afac2 commit 8bca483
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/features/plan-persistence.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ Or to use a GCP bucket:
upload-plan-destination: gcp
```

## Permissions
Make sure to set `actions:write` permission in your workflow; otherwise plan storage might fail

## Plan json file naming convention

The location of plan json output file is:
Expand Down
1 change: 1 addition & 0 deletions docs/getting-started/github-actions-+-aws.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write # required to merge PRs
actions: write # required for plan persistence
id-token: write # required for workload-identity-federation
pull-requests: write # required to post PR comments
statuses: write # required to validate combined PR status
Expand Down
6 changes: 6 additions & 0 deletions docs/getting-started/github-actions-and-gcp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ jobs:
digger-job:
name: Digger
runs-on: ubuntu-latest
permissions:
contents: write # required to merge PRs
actions: write # required for plan persistence
id-token: write # required for workload-identity-federation
pull-requests: write # required to post PR comments
statuses: write # required to validate combined PR status
steps:
- uses: actions/checkout@v4
- id: 'auth'
Expand Down

0 comments on commit 8bca483

Please sign in to comment.