You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2023/12/31 17:51:55 UTC

(camel-k) branch main updated: Sanitize PR head.ref (#5013)

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/main by this push:
     new e6dad5d85 Sanitize PR head.ref (#5013)
e6dad5d85 is described below

commit e6dad5d8527dfec4152ee91032f717e21761db58
Author: Adnan Khan <Ad...@users.noreply.github.com>
AuthorDate: Sun Dec 31 12:51:51 2023 -0500

    Sanitize PR head.ref (#5013)
---
 .github/workflows/coverage.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml
index dc938b8eb..43b8a3de7 100644
--- a/.github/workflows/coverage.yml
+++ b/.github/workflows/coverage.yml
@@ -37,10 +37,11 @@ jobs:
         env:
           CI_USER: "github-actions[bot]"
           CI_EMAIL: "41898282+github-actions[bot]@users.noreply.github.com"
+          PR_HEAD: "${{ github.event.pull_request.head.ref }}"
         run: |
           git clone ${{ github.event.pull_request.head.repo.clone_url }}
           cd ${{ github.event.pull_request.head.repo.name }}
-          git checkout ${{ github.event.pull_request.head.ref }}
+          git checkout $PR_HEAD
 
           git config --local user.email "$CI_EMAIL"
           git config --local user.name "$CI_USER"