Skip to content

Commit 5b0967f

Browse files
committed
fix: Add checkout step to coverage-report job
The coverage-report job was failing on fork PRs with: 'The current working directory is not inside a git repository' The fgrosse/go-coverage-report action needs the repository checked out to function properly. Added checkout step before the coverage report action. Fixes workflow failures on external contributor PRs.
1 parent 4bbe76a commit 5b0967f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ jobs:
5858
actions: read
5959
pull-requests: write
6060
steps:
61+
- name: Checkout
62+
uses: actions/checkout@v4
63+
6164
- uses: fgrosse/go-coverage-report@v1.1.1
6265
with:
6366
coverage-artifact-name: code-coverage

0 commit comments

Comments
 (0)