From ed46fbc2ebc01ff7a92f0329a2531712b498e51e Mon Sep 17 00:00:00 2001 From: mbooz Date: Mon, 22 Jun 2026 16:18:10 -0400 Subject: [PATCH] Update codecov-action to v5 Updates codecov-action to v5, uses OIDC authentication, and adds the unit-tests flag to codecov reports. Only runs codecov-action on pull-requests and pushes to master. Updates Coverage Status in README.md to point to codecov --- .github/workflows/tox-test.yml | 9 +++++++-- README.md | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tox-test.yml b/.github/workflows/tox-test.yml index 4dbf650..0ce17b9 100644 --- a/.github/workflows/tox-test.yml +++ b/.github/workflows/tox-test.yml @@ -37,6 +37,8 @@ jobs: run: tox -e lint coverage: runs-on: ubuntu-latest + permissions: + id-token: write steps: - uses: actions/checkout@v3 - name: Install OS packages @@ -54,11 +56,14 @@ jobs: - name: Install pytest cov run: pip install pytest-cov - name: Upload coverage to Codecov - uses: codecov/codecov-action@v4 + uses: codecov/codecov-action@v5 + if: github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref =='refs/heads/master') with: + use_oidc: true + flags: unit-tests + files: coverage.xml fail_ci_if_error: true verbose: true - token: ${{ secrets.CODECOV_TOKEN }} bandit-exitzero: runs-on: ubuntu-latest steps: diff --git a/README.md b/README.md index fbd2b2d..c8cb9de 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ A library for uploading and publishing disk images on various clouds [![Build Status](https://travis-ci.org/release-engineering/cloudimg.svg?branch=master)](https://travis-ci.org/release-engineering/cloudimg) -[![Coverage Status](https://coveralls.io/repos/github/release-engineering/cloudimg/badge.svg?branch=master)](https://coveralls.io/github/release-engineering/cloudimg?branch=master) +[![Coverage Status](https://app.codecov.io/gh/release-engineering/cloudimg)](https://app.codecov.io/gh/release-engineering/cloudimg) ## Installation