File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 11name : Workflow for Codecov example-python
22on : [push, pull_request, pull_request_target]
3+ permissions :
4+ id-token : write # This is required for requesting the JWT
5+ contents : read
36jobs :
47 run :
58 runs-on : ubuntu-latest
1619 run : pip install -r requirements.txt
1720 - name : Run tests and collect coverage
1821 run : pytest --cov app
19- - name : Upload coverage to Codecov
22+ - name : Upload coverage to Codecov (token)
2023 uses : codecov/codecov-action@th/fix-head-repo-for-tokenless
2124 with :
2225 verbose : true
2326 env :
2427 CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
28+ - name : Upload coverage to Codecov (oidc)
29+ uses : codecov/codecov-action@th/fix-head-repo-for-tokenless
30+ with :
31+ verbose : true
32+ use_oidc : true
33+ - name : Upload coverage to Codecov (no token)
34+ uses : codecov/codecov-action@th/fix-head-repo-for-tokenless
35+ with :
36+ verbose : true
You can’t perform that action at this time.
0 commit comments