File tree 1 file changed +14
-1
lines changed
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
1
2
name : Workflow for Codecov example-python
2
3
on : [push, pull_request, pull_request_target]
4
+ permissions :
5
+ id-token : write # This is required for requesting the JWT
6
+ contents : read
3
7
jobs :
4
8
run :
5
9
runs-on : ubuntu-latest
16
20
run : pip install -r requirements.txt
17
21
- name : Run tests and collect coverage
18
22
run : pytest --cov app
19
- - name : Upload coverage to Codecov
23
+ - name : Upload coverage to Codecov (token)
20
24
uses : codecov/codecov-action@th/fix-head-repo-for-tokenless
21
25
with :
22
26
verbose : true
23
27
env :
24
28
CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
29
+ - name : Upload coverage to Codecov (oidc)
30
+ uses : codecov/codecov-action@th/fix-head-repo-for-tokenless
31
+ with :
32
+ verbose : true
33
+ use_oidc : true
34
+ - name : Upload coverage to Codecov (no token)
35
+ uses : codecov/codecov-action@th/fix-head-repo-for-tokenless
36
+ with :
37
+ verbose : true
You can’t perform that action at this time.
0 commit comments