Skip to content

Commit

Permalink
🔧 use OpenID Connect (OIDC) instead of CODECOV_TOKEN secret
Browse files Browse the repository at this point in the history
  • Loading branch information
burgholzer committed May 24, 2024
1 parent d485d10 commit 4be698a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/reusable-cpp-ci.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: 🇨‌ • CI
on:
workflow_call:
secrets:
token:
description: "The token to use for Codecov"
required: true
inputs:
cmake-args:
description: "Additional arguments to pass to CMake on every OS"
Expand Down Expand Up @@ -69,8 +65,6 @@ jobs:
coverage:
name: 📈
uses: ./.github/workflows/reusable-cpp-coverage.yml
secrets:
token: ${{ secrets.token }}
with:
cmake-args: ${{ inputs.cmake-args }} ${{ inputs.cmake-args-ubuntu }}
setup-z3: ${{ inputs.setup-z3 }}
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/reusable-cpp-coverage.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: 🇨 • Coverage
on:
workflow_call:
secrets:
token:
description: "The token to use for Codecov"
required: true
inputs:
cmake-args:
description: "Additional arguments to pass to CMake"
Expand All @@ -23,6 +19,8 @@ jobs:
coverage:
name: 📈 Coverage
runs-on: ubuntu-latest
permissions:
id-token: write
env:
CMAKE_BUILD_PARALLEL_LEVEL: 4
CTEST_PARALLEL_LEVEL: 4
Expand Down Expand Up @@ -59,4 +57,4 @@ jobs:
with:
fail_ci_if_error: true
flags: cpp
token: ${{ secrets.token }}
use_oidc: true
6 changes: 1 addition & 5 deletions .github/workflows/reusable-python-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ name: 🐍 • CI

on:
workflow_call:
secrets:
token:
description: "The token to use for Codecov"
required: true
inputs:
setup-z3:
description: "Whether to set up Z3"
Expand Down Expand Up @@ -123,4 +119,4 @@ jobs:
with:
fail_ci_if_error: true
flags: python
token: ${{ secrets.token }}
use_oidc: true

0 comments on commit 4be698a

Please sign in to comment.