Skip to content

Commit 11caf1f

Browse files
Fix Codecov badge by adding OIDC permission for tokenless upload
The codecov-action v5 requires `id-token: write` to authenticate via OIDC when no CODECOV_TOKEN is provided. Without it the upload silently fails (fail_ci_if_error: false) leaving the badge as "unknown". The Codecov GitHub App is already installed on the WordPress org, so OIDC-based tokenless uploads work once this permission is granted.
1 parent 272a610 commit 11caf1f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ jobs:
6565
test-php:
6666
name: Test PHP ${{ matrix.php }} ${{ matrix.wp != '' && format( ' (WP {0}) ', matrix.wp ) || '' }}
6767
runs-on: ubuntu-24.04
68+
permissions:
69+
id-token: write
6870
strategy:
6971
matrix:
7072
php:

0 commit comments

Comments
 (0)