Skip to content

Commit 93cbe21

Browse files
authored
Merge pull request #252 from bingenito/codecov-oidc
Update build workflow to enable OIDC for Codecov
2 parents e6e4a67 + 257e95f commit 93cbe21

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ permissions:
88

99
jobs:
1010
build:
11-
1211
runs-on: windows-latest
12+
permissions:
13+
contents: read
14+
id-token: write
1315

1416
steps:
1517
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
@@ -55,5 +57,5 @@ jobs:
5557

5658
- name: Codecov
5759
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
58-
env:
59-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
60+
with:
61+
use_oidc: true

.github/workflows/continuous-integration.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@ permissions:
1111

1212
jobs:
1313
build:
14+
permissions:
15+
contents: read
16+
id-token: write
17+
1418
uses: ./.github/workflows/build.yml

0 commit comments

Comments
 (0)