Skip to content

Commit a0aa001

Browse files
committed
fix: Switch Codecov to OIDC auth, upgrade to v7, add unit-tests flag, scope push to main
Assisted-by: Claude Code (claude-opus-4-6) <noreply@anthropic.com>
1 parent 10dcecf commit a0aa001

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/gating.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,18 @@ name: Gating
44
"on":
55
pull_request:
66
push:
7+
branches:
8+
- main
79
workflow_dispatch:
810
inputs: {}
911

1012
jobs:
1113
tests:
1214
name: Unit tests
1315
runs-on: ubuntu-latest
16+
permissions:
17+
id-token: write
18+
contents: read
1419

1520
steps:
1621
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
@@ -25,11 +30,12 @@ jobs:
2530
run: uvx --with tox-uv tox -e py3
2631

2732
- name: Upload coverage to Codecov
28-
uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6
33+
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7
2934
with:
3035
fail_ci_if_error: true
3136
verbose: true
32-
token: ${{ secrets.CODECOV_TOKEN }}
37+
use_oidc: true
38+
flags: unit-tests
3339

3440
linters:
3541
name: Linters

0 commit comments

Comments
 (0)