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.git


The following commit(s) were added to refs/heads/main by this push:
     new 0bc55384f61a Avoid pull_request_target in actions
0bc55384f61a is described below

commit 0bc55384f61a507132ba737635215b6552fc41a1
Author: Andrea Cosentino <[email protected]>
AuthorDate: Thu Feb 12 13:46:12 2026 +0100

    Avoid pull_request_target in actions
    
    Signed-off-by: Andrea Cosentino <[email protected]>
---
 .github/workflows/component-pr.yaml | 2 +-
 .github/workflows/generic-pr.yaml   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/component-pr.yaml 
b/.github/workflows/component-pr.yaml
index 47cc7d8483dd..c31ea0c2d1ad 100644
--- a/.github/workflows/component-pr.yaml
+++ b/.github/workflows/component-pr.yaml
@@ -41,7 +41,7 @@ jobs:
     steps:
       - uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # 
v8.0.0
         if: |
-          github.event_name == 'pull_request_target' &&
+          github.event_name == 'pull_request' &&
             (github.event.action == 'opened' ||
              github.event.action == 'reopened')
         with:
diff --git a/.github/workflows/generic-pr.yaml 
b/.github/workflows/generic-pr.yaml
index d20a84c8f579..c9fa9f82063b 100644
--- a/.github/workflows/generic-pr.yaml
+++ b/.github/workflows/generic-pr.yaml
@@ -38,7 +38,7 @@ jobs:
     steps:
       - name: Label changes scope
         if: |
-          github.event_name == 'pull_request_target' &&
+          github.event_name == 'pull_request' &&
             (github.event.action == 'opened' ||
              github.event.action == 'reopened' ||
              github.event.action == 'synchronize')

Reply via email to