From 40f7270a038d48582ee575bb7a4f6d07bef6bf8f Mon Sep 17 00:00:00 2001 From: Nick Cross Date: Tue, 13 Oct 2026 11:08:14 +0100 Subject: [PATCH] Use OIDC for codecov --- .github/workflows/gradle-ci.yml | 2 ++ .github/workflows/gradle-snapshot.yml | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/gradle-ci.yml b/.github/workflows/gradle-ci.yml index ff5831a..05438d6 100644 --- a/.github/workflows/gradle-ci.yml +++ b/.github/workflows/gradle-ci.yml @@ -53,6 +53,7 @@ jobs: permissions: contents: read + id-token: write # Required for Codecov OIDC steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 @@ -78,6 +79,7 @@ jobs: uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1 with: files: ${{ inputs.coverage_files }} + use_oidc: true verbose: true - name: Save PR metadata diff --git a/.github/workflows/gradle-snapshot.yml b/.github/workflows/gradle-snapshot.yml index 57c4141..c7a421f 100644 --- a/.github/workflows/gradle-snapshot.yml +++ b/.github/workflows/gradle-snapshot.yml @@ -48,6 +48,9 @@ jobs: if: github.repository == inputs.project_name runs-on: ubuntu-latest + permissions: + id-token: write # Required for Codecov OIDC + steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: @@ -89,5 +92,6 @@ jobs: uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1 with: files: ${{ inputs.coverage_files }} + use_oidc: true verbose: true