diff --git a/.github/workflows/pr-status-checks-workflow-call-fork.yml b/.github/workflows/pr-status-checks-workflow-call-fork.yml new file mode 100644 index 0000000..5a919f6 --- /dev/null +++ b/.github/workflows/pr-status-checks-workflow-call-fork.yml @@ -0,0 +1,23 @@ +name: PR Status Checks + +on: + pull_request_target: + branches: + - main + +concurrency: + group: ${{ github.event.pull_request.head.repo.full_name }}-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-fork + cancel-in-progress: true + +permissions: + pull-requests: write + contents: write + packages: read + actions: write + checks: write + statuses: write + +jobs: + pr-status-check: + if: ${{ github.event.pull_request.head.repo.full_name != 'openmcp-project/blueprint-building-blocks' }} + uses: "openmcp-project/blueprint-workflows/.github/workflows/git-pr-status-checks.yml@main" diff --git a/.github/workflows/pr-status-checks-workflow-call.yml b/.github/workflows/pr-status-checks-workflow-call.yml index 5c94ce4..c46dbdf 100644 --- a/.github/workflows/pr-status-checks-workflow-call.yml +++ b/.github/workflows/pr-status-checks-workflow-call.yml @@ -4,9 +4,6 @@ on: pull_request: branches: - main - pull_request_target: - branches: - - main concurrency: group: ${{ github.event.pull_request.head.repo.full_name }}-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} @@ -22,4 +19,5 @@ permissions: jobs: pr-status-check: + if: ${{ github.event.pull_request.head.repo.full_name == 'openmcp-project/blueprint-building-blocks' }} uses: "openmcp-project/blueprint-workflows/.github/workflows/git-pr-status-checks.yml@main"