Skip to content

Commit 3ba772f

Browse files
Move codecov_token from inside actions
1 parent 48cf08b commit 3ba772f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/actions/test-ubuntu/action.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: 'Test Ubuntu'
22
description: 'Run tests on Ubuntu with coverage reporting'
33

4+
inputs:
5+
codecov-token:
6+
description: 'Codecov token for uploading coverage reports'
7+
required: false
8+
default: ''
9+
410
runs:
511
using: 'composite'
612
steps:
@@ -70,4 +76,4 @@ runs:
7076
- name: Upload coverage reports to Codecov
7177
uses: codecov/codecov-action@v5
7278
env:
73-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
79+
CODECOV_TOKEN: ${{ inputs.codecov-token }}

.github/workflows/tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ jobs:
4747
uses: actions/checkout@v4
4848
- name: Run Ubuntu tests
4949
uses: ./.github/actions/test-ubuntu
50+
with:
51+
codecov-token: ${{ secrets.CODECOV_TOKEN }}
5052

5153
# Run macOS tests when relevant changes detected
5254
test-macos:

0 commit comments

Comments
 (0)