Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/ci-integration-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ jobs:
if: startsWith(github.event.review.body, '/ci-run-integration') || startsWith(github.event.review.body, '/ci-run-e2e') || contains(github.event.review.body, '/ci-run-all')
permissions:
statuses: write # Required to set commit status to pending
env:
IS_FORK_PR: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
steps:
- name: Generate authentication token
id: generate_token
Expand All @@ -70,8 +72,12 @@ jobs:
team: "Vector"
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}

# Let Observability Pipelines members trigger CI on their own same-repository PRs.
# Other reviewers and fork PRs still require Vector-team membership.
- name: Validate author membership
if: steps.comment.outputs.isTeamMember == 'false'
if: >-
steps.comment.outputs.isTeamMember == 'false' &&
(env.IS_FORK_PR == 'true' || github.actor != github.event.pull_request.user.login)
run: exit 1

- name: (PR review) Set latest commit status as pending
Expand Down
Loading