Skip to content

Commit 6070dfa

Browse files
fix: more token
1 parent 10eaa1c commit 6070dfa

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

.github/workflows/ci.yml

+18-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on: [push, pull_request]
33
jobs:
44
run:
55
runs-on: ubuntu-latest
6+
permissions:
7+
id-token: write
68
steps:
79
- name: Checkout
810
uses: actions/checkout@v4
@@ -14,9 +16,23 @@ jobs:
1416
run: pip install -r requirements.txt
1517
- name: Run tests and collect coverage
1618
run: pytest --cov app
17-
- name: Upload coverage to Codecov
18-
uses: codecov/codecov-action@v5
19+
- name: Upload coverage to Codecov (arg token)
20+
uses: codecov/codecov-action@main
21+
with:
22+
verbose: true
23+
token: ${{ secrets.CODECOV_TOKEN }}
24+
- name: Upload coverage to Codecov (env token)
25+
uses: codecov/codecov-action@main
1926
with:
2027
verbose: true
2128
env:
2229
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
30+
- name: Upload coverage to Codecov (no token)
31+
uses: codecov/codecov-action@main
32+
with:
33+
verbose: true
34+
- name: Upload coverage to Codecov (oidc)
35+
uses: codecov/codecov-action@main
36+
with:
37+
verbose: true
38+
use_oidc: true

0 commit comments

Comments
 (0)