Skip to content

Commit

Permalink
v1.30.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dflook committed Nov 19, 2022
1 parent 8903ce2 commit e034477
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
21 changes: 18 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ These input values must be the same as any `terraform-plan` for the same configu

* `GITHUB_TOKEN`

The GitHub authorization token to use to fetch an approved plan from a PR.
The GitHub authorization token to use to fetch an approved plan from a PR.
This must belong to the same user/app as the token used by the terraform-plan action.
The token provided by GitHub Actions can be used - it can be passed by
using the `${{ secrets.GITHUB_TOKEN }}` expression, e.g.

Expand All @@ -263,8 +264,22 @@ These input values must be the same as any `terraform-plan` for the same configu
The minimum permissions are `pull-requests: write`.
It will also likely need `contents: read` so the job can checkout the repo.

You can also use a Personal Access Token which has the `repo` scope.
This must belong to the same user as the token used by the terraform-plan action
You can also use any other App token that has `pull-requests: write` permission.

You can use a fine-grained Personal Access Token which has repository permissions:
- Read access to metadata
- Read and Write access to pull requests

You can also use a classic Personal Access Token which has the `repo` scope.

- Type: string
- Optional

* `TERRAFORM_ACTIONS_GITHUB_TOKEN`

When this is set it is used instead of `GITHUB_TOKEN`, with the same behaviour.
The GitHub terraform provider also uses the `GITHUB_TOKEN` so this can be used to
make the github actions and the terraform provider use different tokens.

- Type: string
- Optional
Expand Down
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ outputs:

runs:
using: docker
image: docker://danielflook/terraform-github-actions@sha256:c839fa1fb34369e1230ba77891e0a1ba30a8f52e0b42d8335d860f313f42b09e
image: docker://danielflook/terraform-github-actions@sha256:7edff0d05c6ad3f7fd88f0af21a73be9fce20eea1490f4d82f6609d419825f3c
entrypoint: /entrypoints/apply.sh

branding:
Expand Down

0 comments on commit e034477

Please sign in to comment.