Skip to content

Conversation

suzuki-shunsuke
Copy link
Owner

@suzuki-shunsuke suzuki-shunsuke commented Mar 11, 2024

Close #865

This pull request adds an input github_token_for_tflint_init, which is a GitHub Access Token for tflint --init.
If this is set, the value is passed to tflint --init as the environment variable GITHUB_TOKEN.
Otherwise, the input github_token is used instead.

This input is useful for GitHub Enterprise Servers.
You can post comments and reviews to a GitHub Enterprise Server with github-comment and reviewdog, and download tflint plugins from github.com.

- uses: suzuki-shunsuke/github-action-tflint@v0.1.1
  with:
    github_token: ${{ secrets.GITHUB_TOKEN }} # GitHub Access token of GitHub Enterprise Server
    github_token_for_tflint_init: ${{ secrets.GH_TOKEN_FOR_TFLINT_INIT }} # GitHub Access token of github.com
    github_comment: true

@suzuki-shunsuke suzuki-shunsuke added the enhancement New feature or request label Mar 11, 2024
@suzuki-shunsuke suzuki-shunsuke added this to the v1.1.0 milestone Mar 11, 2024
@suzuki-shunsuke
Copy link
Owner Author

suzuki-shunsuke commented Mar 11, 2024

@suzuki-shunsuke suzuki-shunsuke merged commit 0b7fbc3 into main Mar 11, 2024
@suzuki-shunsuke suzuki-shunsuke deleted the feat-github-token-tflint-init branch March 11, 2024 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support passing GitHub Access tokens for github.com and GitHub Enterprise Server
1 participant