Skip to content

Commit 56186e8

Browse files
fix: add checkout step for test-reporter and pin to commit SHA
- Add checkout step before downloading artifacts in test-report job This fixes 'fatal: not a git repository' error from dorny/test-reporter - Pin dorny/test-reporter to v1.9.1 commit SHA for security The test-reporter action requires git to create check runs properly.
1 parent b5ef489 commit 56186e8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/stage-2-test.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,22 +119,25 @@ jobs:
119119
permissions:
120120
checks: write
121121
steps:
122+
- name: "Checkout code"
123+
uses: actions/checkout@v5
124+
122125
- name: "Download test results"
123126
uses: actions/download-artifact@v5
124127
with:
125128
name: unit-tests
126129
path: test-results
127130

128131
- name: "Publish Jest test report"
129-
uses: dorny/test-reporter@v1
132+
uses: dorny/test-reporter@31a54ee7ebcacc03a09ea97a7e5465a47b84aea5 # v1.9.1
130133
with:
131134
name: Jest Test Report
132135
path: 'test-results/**/junit.xml'
133136
reporter: jest-junit
134137
fail-on-error: false
135138

136139
- name: "Publish pytest test report"
137-
uses: dorny/test-reporter@v1
140+
uses: dorny/test-reporter@31a54ee7ebcacc03a09ea97a7e5465a47b84aea5 # v1.9.1
138141
with:
139142
name: Pytest Test Report
140143
path: 'test-results/**/pytest-report.xml'

0 commit comments

Comments
 (0)