From 2f779c1ee23b1e6e73bf2e021902e85ba8bb9f48 Mon Sep 17 00:00:00 2001 From: Arseniy Obolenskiy Date: Fri, 4 Jul 2025 09:49:36 +0200 Subject: [PATCH] [CI] Allow codecov comment upload failures To fix direct upload to the main repo (not from fork) with lack of `write` permissions (e.g. in case of Dependabot submissions) --- .github/workflows/ubuntu.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 493dc482b..17c30b34a 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -396,8 +396,8 @@ jobs: name: cov-report path: 'cov-report' - name: Comment coverage report link - # TODO: Support PRs from forks too - if: ${{ github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork }} + # TODO: Support PRs from forks and handle cases with insufficient write permissions + continue-on-error: true uses: peter-evans/create-or-update-comment@v4 with: token: ${{ secrets.GITHUB_TOKEN }}