diff --git a/.github/workflows/mix-code-scan.yml b/.github/workflows/mix-code-scan.yml index b4b1498..f27ff58 100644 --- a/.github/workflows/mix-code-scan.yml +++ b/.github/workflows/mix-code-scan.yml @@ -4,7 +4,7 @@ name: Code Scan on: - pull_request: + pull_request_target: branches: [main] types: [opened, reopened, ready_for_review, synchronize] # added `ready_for_review` since draft is skipped paths-ignore: diff --git a/.github/workflows/pr-integration-test.yml b/.github/workflows/pr-integration-test.yml index c501014..45aa7d7 100644 --- a/.github/workflows/pr-integration-test.yml +++ b/.github/workflows/pr-integration-test.yml @@ -4,14 +4,14 @@ name: Integration-test on: - pull_request: + pull_request_target: branches: [main] types: [opened, reopened, ready_for_review, synchronize] - #paths: - # - langchain_opea/** - # - tests/unit_tests/** - # - .github/workflows/pr-integration-test.yml - # - "!**.md" + paths: + - langchain_opea/** + - tests/unit_tests/** + - .github/workflows/pr-integration-test.yml + - "!**.md" # If there is a new commit, the previous jobs will be canceled concurrency: diff --git a/.github/workflows/pr-link-path-scan.yaml b/.github/workflows/pr-link-path-scan.yaml index b7071a8..7506ec3 100644 --- a/.github/workflows/pr-link-path-scan.yaml +++ b/.github/workflows/pr-link-path-scan.yaml @@ -4,7 +4,7 @@ name: Check hyperlinks and relative path validity on: - pull_request: + pull_request_target: branches: [main] types: [opened, reopened, ready_for_review, synchronize] diff --git a/.github/workflows/pr-unit-test.yml b/.github/workflows/pr-unit-test.yml index deac07c..9fca46e 100644 --- a/.github/workflows/pr-unit-test.yml +++ b/.github/workflows/pr-unit-test.yml @@ -4,14 +4,14 @@ name: Unit-test on: - pull_request: + pull_request_target: branches: [main] types: [opened, reopened, ready_for_review, synchronize] - #paths: - # - langchain_opea/** - # - tests/unit_tests/**\ - # - .github/workflows/pr-unit-test.yml - # - "!**.md" + paths: + - langchain_opea/** + - tests/unit_tests/**\ + - .github/workflows/pr-unit-test.yml + - "!**.md" # If there is a new commit, the previous jobs will be canceled concurrency: diff --git a/tests/test_integration_langchain_opea.sh b/tests/test_integration_langchain_opea.sh index a104590..06e600e 100755 --- a/tests/test_integration_langchain_opea.sh +++ b/tests/test_integration_langchain_opea.sh @@ -1,5 +1,4 @@ -#!/bin/bash -# Copyright (C) 2025 Intel Corporation +# Copyright (C) 2025 Intel Corporation # SPDX-License-Identifier: Apache-2.0 set -xe