File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -226,8 +226,10 @@ jobs:
226226 needs : gpu-unit-tests
227227 if : ${{ !cancelled() && needs.gpu-unit-tests.result != 'skipped' }}
228228 runs-on : ubuntu-latest
229- # Same-run artifact downloads use the runtime token, not GITHUB_TOKEN.
230- permissions : {}
229+ # Same-run artifact downloads use the runtime token; contents access is
230+ # only used to build Codecov's source network for coverage path mapping.
231+ permissions :
232+ contents : read
231233 steps :
232234 # *.blob.core.windows.net is intentionally broad: GitHub artifact storage
233235 # uses rotating productionresultssaN hosts and harden-runner only supports
@@ -239,11 +241,20 @@ jobs:
239241 allowed-endpoints : >
240242 *.blob.core.windows.net:443
241243 cli.codecov.io:443
244+ github.com:443
242245 ingest.codecov.io:443
243246 keybase.io:443
244247 o26192.ingest.us.sentry.io:443
245248 results-receiver.actions.githubusercontent.com:443
246249 storage.googleapis.com:443
250+ - name : Checkout source for coverage path mapping
251+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
252+ with :
253+ ref : ${{ inputs.ref || github.sha }}
254+ persist-credentials : false
255+ sparse-checkout : |
256+ .github
257+ newton
247258 - name : Download coverage artifact
248259 id : download-coverage
249260 continue-on-error : true
@@ -258,6 +269,7 @@ jobs:
258269 env_vars : AWS_INSTANCE_TYPE
259270 files : ./coverage.xml
260271 flags : unittests
272+ plugins : noop
261273 override_commit : ${{ inputs.ref || github.sha }}
262274 token : ${{ secrets.CODECOV_TOKEN }}
263275
Original file line number Diff line number Diff line change @@ -185,8 +185,10 @@ jobs:
185185 macos-latest,
186186 ]
187187 runs-on : ubuntu-latest
188- # Same-run artifact downloads use the runtime token, not GITHUB_TOKEN.
189- permissions : {}
188+ # Same-run artifact downloads use the runtime token; contents access is
189+ # only used to build Codecov's source network for coverage path mapping.
190+ permissions :
191+ contents : read
190192 env :
191193 OS : ${{ matrix.os }}
192194 steps :
@@ -200,11 +202,20 @@ jobs:
200202 allowed-endpoints : >
201203 *.blob.core.windows.net:443
202204 cli.codecov.io:443
205+ github.com:443
203206 ingest.codecov.io:443
204207 keybase.io:443
205208 o26192.ingest.us.sentry.io:443
206209 results-receiver.actions.githubusercontent.com:443
207210 storage.googleapis.com:443
211+ - name : Checkout source for coverage path mapping
212+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
213+ with :
214+ ref : ${{ github.sha }}
215+ persist-credentials : false
216+ sparse-checkout : |
217+ .github
218+ newton
208219 - name : Download test results artifact
209220 id : download-test-results
210221 continue-on-error : true
@@ -221,6 +232,7 @@ jobs:
221232 if : ${{ steps.download-test-results.outcome == 'success' }}
222233 uses : codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5.5.3
223234 with :
235+ disable_search : true
224236 files : ./rspec.xml
225237 report_type : test_results
226238 token : ${{ secrets.CODECOV_TOKEN }}
@@ -232,4 +244,5 @@ jobs:
232244 env_vars : OS
233245 files : ./coverage.xml
234246 flags : unittests
247+ plugins : noop
235248 token : ${{ secrets.CODECOV_TOKEN }}
You can’t perform that action at this time.
0 commit comments