From 203a5c0e2e2196d731383e36933b729cccbdd0d0 Mon Sep 17 00:00:00 2001 From: Ryan Walters Date: Sun, 23 Nov 2025 01:38:41 -0600 Subject: [PATCH] fix(ci): skip Coveralls upload when token unavailable The coverage workflow was failing on Dependabot PRs because COVERALLS_REPO_TOKEN is not available to PRs from forks for security reasons. Add a conditional check to skip the upload step when the token is missing, while still running coverage generation. This allows PRs to pass CI while retaining coverage reports on master. --- .github/workflows/coverage.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index 5c94171..f7df344 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -57,6 +57,7 @@ jobs: working-directory: pacman - name: Coveralls upload + if: ${{ secrets.COVERALLS_REPO_TOKEN != '' }} uses: coverallsapp/github-action@v2 with: github-token: ${{ secrets.COVERALLS_REPO_TOKEN }}