diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index b5f7b15..a692e0a 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -2,6 +2,10 @@ name: Lint on: workflow_call: + inputs: + head-ref: + required: true + type: string secrets: GITHUB_TOKEN: required: true @@ -20,9 +24,10 @@ jobs: - name: Check out Git repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + ref: ${{ inputs.head-ref }} persist-credentials: false - name: Trunk Check - uses: trunk-io/trunk-action@75699af9e26881e564e9d832ef7dc3af25ec031b # v1.2.4 + uses: trunk-io/trunk-action@04ba50e7658c81db7356da96657e6e77f220bfa3 # v1.3.1 env: # NOTE: inject the GITHUB_TOKEN for the trunk managed tflint linter # https://github.com/terraform-linters/tflint/blob/master/docs/user-guide/plugins.md#avoiding-rate-limiting diff --git a/.github/workflows/test.yaml b/.github/workflows/tf-test.yaml similarity index 100% rename from .github/workflows/test.yaml rename to .github/workflows/tf-test.yaml