terraform-linters / setup-tflint

A GitHub action that installs Terraform linter TFLint
MIT License
149 stars 38 forks source link

Cache not found for input keys #162

Closed tmhererwa closed 1 year ago

tmhererwa commented 1 year ago

Cache plugin dir step failing

Run actions/cache@v3 with: path: ~/.tflint.d/plugins key: ubuntu-latest-tflint- enableCrossOsArchive: false fail-on-cache-miss: false lookup-only: false env: TF_LOG: INFO TERRAFORM_CLI_PATH: /home/runner/work/_temp/caef4[2](https://github.com/my-repo/root-dir/actions/runs/4786210260/jobs/8509878101#step:8) Cache not found for input keys: ubuntu-latest-tflint-

This leads to below error:

Run terraform-linters/setup-tflint@v3 with: tflint_version: 0.44.1 github_token: *** env: TF_LOG: INFO TERRAFORM_CLI_PATH: /home/runner/work/_temp/caef4[2](https://github.com/bison-cloud-platform/my-repo/root-dir/actions/runs/4786210260/jobs/8509878101#step:9) Error: Error: Unexpected HTTP response: 404 Error: Unexpected HTTP response: 404

The terraform.yaml file config applicable to tflint is as shown below:

 # Lint using TFLint
      - name: Cache plugin dir
        uses: actions/cache@v3
        with:
          path: ~/.tflint.d/plugins
          key: ${{ matrix.os }}-tflint-${{ hashFiles('.tflint.hcl') }}

      - uses: terraform-linters/setup-tflint@v3
        name: Setup TFLint
        with:
          tflint_version: 0.44.1

      - name: Show tflint version
        run: tflint --version

      - name: Init tflint
        run: tflint --init
        env:
          GITHUB_TOKEN: ${{ secrets.TFLINT_TOKEN }}

      - name: Run tflint
        run: tflint -f compact