Skip to content

Commit 44c1835

Browse files
vjdhamaclaude
andcommitted
fix: correct checkout configuration in terraform-checks workflow
- Use conditional ref for pull_request vs push events - Remove repository parameter that breaks with forks - Add proper GITHUB_TOKEN for authentication - Fixes checkout failures for fork-based PRs 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent eb6d3fd commit 44c1835

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/terraform-checks.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ jobs:
9898
- name: Checkout
9999
uses: actions/checkout@v4
100100
with:
101-
ref: ${{ github.event.pull_request.head.ref }}
102-
repository: ${{github.event.pull_request.head.repo.full_name}}
101+
ref: ${{ github.event_name == 'pull_request' && github.head_ref || github.ref }}
102+
token: ${{ secrets.GITHUB_TOKEN }}
103103

104104
- name: Terraform min/max versions
105105
id: minMax

0 commit comments

Comments
 (0)