From 6dee3b54c2745b950883ae2bf168d24ae7120778 Mon Sep 17 00:00:00 2001 From: Manuel Palenzuela Merino Date: Thu, 12 Mar 2026 15:08:04 +0100 Subject: [PATCH 1/3] Add Datadog code coverage upload alongside Codecov Add DataDog/coverage-upload-github-action step to the coverage job in test.yml to upload coverage reports to Datadog Code Coverage side-by-side with the existing Codecov upload. This enables comparison of coverage data between both systems as part of the Codecov-to-Datadog migration. --- .github/workflows/test.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ab08f88f..610b2a48 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -77,6 +77,14 @@ jobs: directory: coverage_data use_oidc: true + - name: Upload coverage to Datadog + if: always() + continue-on-error: true + uses: DataDog/coverage-upload-github-action@v1 + with: + api_key: ${{ secrets.DD_API_KEY }} + files: coverage_data + check: if: always() needs: From 61f98db3a7ab1182a8929aa617c55f54a546eefa Mon Sep 17 00:00:00 2001 From: Manuel Palenzuela Merino Date: Thu, 12 Mar 2026 15:15:27 +0100 Subject: [PATCH 2/3] Pin coverage-upload-github-action to full SHA Required by DataDog org policy: all actions must be pinned to full-length commit SHAs. --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 610b2a48..db6bb643 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -80,7 +80,7 @@ jobs: - name: Upload coverage to Datadog if: always() continue-on-error: true - uses: DataDog/coverage-upload-github-action@v1 + uses: DataDog/coverage-upload-github-action@9bbbf86d16f7db1b14c5b885e61cf0d96053686a # v1 with: api_key: ${{ secrets.DD_API_KEY }} files: coverage_data From b384d2cbe6bb6703ce4e6db00ffdccfd81f4c376 Mon Sep 17 00:00:00 2001 From: Manuel Palenzuela Merino Date: Thu, 12 Mar 2026 15:34:31 +0100 Subject: [PATCH 3/3] Use datadog-ci CLI instead of GitHub Action The DataDog/coverage-upload-github-action is blocked by the enterprise action allowlist (it depends on datadog/install-datadog-ci-github-action which is not permitted). Fall back to npx @datadog/datadog-ci CLI directly. --- .github/workflows/test.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index db6bb643..5fcf19f7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -80,10 +80,9 @@ jobs: - name: Upload coverage to Datadog if: always() continue-on-error: true - uses: DataDog/coverage-upload-github-action@9bbbf86d16f7db1b14c5b885e61cf0d96053686a # v1 - with: - api_key: ${{ secrets.DD_API_KEY }} - files: coverage_data + run: npx @datadog/datadog-ci coverage upload coverage_data + env: + DD_API_KEY: ${{ secrets.DD_API_KEY }} check: if: always()