Skip to content

Commit 3dcec97

Browse files
committed
Require configured token for uploading coverage
This prevents checks failing on forks.
1 parent 3240703 commit 3dcec97

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/swc-aeon.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,12 @@ jobs:
6868

6969
# -------------------------------------------------------- Coverage report
7070
- name: Upload test coverage report to codecov
71-
if: ${{ matrix.codecov }}
71+
env:
72+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
73+
if: ${{ matrix.codecov && env.CODECOV_TOKEN }}
7274
uses: codecov/codecov-action@v5
7375
with:
74-
token: ${{ secrets.CODECOV_TOKEN }}
76+
token: ${{ env.CODECOV_TOKEN }}
7577
directory: tests/test_coverage/
7678
files: test_coverage_report.xml
7779
fail_ci_if_error: true

0 commit comments

Comments
 (0)