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