mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-09 18:43:34 -05:00
ci: authenticate tflint init (#5894)
TFLint init might hit an API rate limit, especially when requests to the TFLint backend come from shared tenants, such as GitHub Actions.
This commit is contained in:
parent
913bd0dd47
commit
cc20e4561e
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ ENV TFLINT_PLUGIN_DIR="/root/.tflint.d/plugins"
|
|||
COPY TEMPLATES/.tflint.hcl /action/lib/.automation/
|
||||
|
||||
# Initialize TFLint plugins so we get plugin versions listed when we ask for TFLint version
|
||||
RUN tflint --init -c /action/lib/.automation/.tflint.hcl
|
||||
RUN --mount=type=secret,id=GITHUB_TOKEN GITHUB_TOKEN=$(cat /run/secrets/GITHUB_TOKEN) tflint --init -c /action/lib/.automation/.tflint.hcl
|
||||
|
||||
FROM python:3.12.3-alpine3.20 AS lintr-installer
|
||||
|
||||
|
|
Loading…
Reference in a new issue