Skip to content

Commit 98c2b67

Browse files
committed
move codecov from token to oidc
1 parent 46efb98 commit 98c2b67

2 files changed

Lines changed: 3 additions & 9 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ jobs:
2323
permissions:
2424
contents: read
2525
actions: write
26+
id-token: write
2627
uses: ./.github/workflows/test.yml
27-
secrets:
28-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2928

3029
build:
3130
name: Build Package

.github/workflows/test.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ on:
1717
- "justfile"
1818
merge_group:
1919
workflow_call:
20-
secrets:
21-
CODECOV_TOKEN:
22-
required: true
2320
workflow_dispatch:
2421
inputs:
2522
debug:
@@ -767,11 +764,9 @@ jobs:
767764
coverage-combine:
768765
needs: [postgres, sqlite, mysql, mariadb, oracle, windows, macos]
769766
runs-on: ubuntu-latest
770-
environment:
771-
name: codecov
772-
deployment: false # Prevents creating a GitHub deployment object
773767
permissions:
774768
contents: read
769+
id-token: write
775770
steps:
776771
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
777772
with:
@@ -797,6 +792,6 @@ jobs:
797792
- name: Upload coverage to Codecov
798793
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2
799794
with:
800-
token: ${{ secrets.CODECOV_TOKEN }}
795+
use_oidc: true
801796
files:
802797
./coverage.xml

0 commit comments

Comments
 (0)