Skip to content

Commit

Permalink
v1.32.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dflook committed Feb 2, 2023
1 parent d5fc2ed commit 4af79de
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ The [dflook/terraform-apply](https://github.com/dflook/terraform-github-actions/
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```

The token provided by GitHub Actions will work with the default permissions.
The token provided by GitHub Actions has default permissions at GitHub's whim. You can see what it is for your repo under the repo settings.

The minimum permissions are `pull-requests: write`.
It will also likely need `contents: read` so the job can checkout the repo.

Expand Down Expand Up @@ -385,6 +386,10 @@ name: PR Plan
on: [pull_request]
permissions:
contents: read
pull-requests: write
jobs:
plan:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -419,6 +424,10 @@ env:
TERRAFORM_CLOUD_TOKENS: terraform.example.com=${{ secrets.TF_REGISTRY_TOKEN }}
TERRAFORM_SSH_KEY: ${{ secrets.TERRAFORM_SSH_KEY }}
permissions:
contents: read
pull-requests: write
jobs:
plan:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -451,6 +460,10 @@ name: Terraform Plan
on: [issue_comment]
permissions:
contents: read
pull-requests: write
jobs:
plan:
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, 'terraform plan') }}
Expand Down
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ outputs:

runs:
using: docker
image: docker://danielflook/terraform-github-actions@sha256:405665d9e9f4ff47eb61152008b3dbb25c00a831deb859ea19c46d28672afb55
image: docker://danielflook/terraform-github-actions@sha256:dc95f716c56bc6b50bd8b901e2b284eeb4ed9e18373fffb92a8f4b564f85044e
entrypoint: /entrypoints/plan.sh

branding:
Expand Down

0 comments on commit 4af79de

Please sign in to comment.