How to display a pipeline status from a different repository in the GitHub "All checks have passed" window? #170632
Replies: 4 comments
-
| Key Points and Recommended Approaches
 Implementation Steps
 Best Practices
 You don’t have to use pipeline resources or service connections to aggregate status, though they help with artifact sharing and triggering; reporting aggregation is controlled by your status check configuration and API usage. In summary, the recommended, maintainable approach is: 
 | 
Beta Was this translation helpful? Give feedback.
-
| ✅ Key Constraints
 ✅ Recommended Approaches1. Use the GitHub Checks API or Status API
 Example using  curl -X POST \
-H "Authorization: token $GITHUB_TOKEN" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/foomakers/pair/statuses/<commit-sha> \
-d '{
  "state": "success",
  "context": "pipeline-b/integration",
  "description": "Pipeline B completed successfully",
  "target_url": "https://dev.azure.com/org/project/_build/results?buildId=123"
}'Pros: 
 Cons: 
 2. Use Azure DevOps GitHub App integration with multi-pipeline reporting
 3. Aggregate Pipeline Strategy
 YAML example: resources:
  pipelines:
    - pipeline: pipelineA
      source: PipelineA
      trigger: true
    - pipeline: pipelineB
      source: PipelineB
      trigger: true
jobs:
- job: aggregate
  steps:
    - script: echo "Both pipelines succeeded"Pros: 
 Cons: 
 4. Combination Approach (Best Practice)
 ✅ Best PracticeIf the goal is clear visibility in GitHub and strict branch protection, go with Approach #1 (GitHub Status API). It gives you: 
 | 
Beta Was this translation helpful? Give feedback.
-
| Hi – thanks for your response. 
 Since I’m leveraging the resources feature, I was able to retrieve all the required details from Pipeline/Repo A (such as the owner, repository name, and commit SHA) to populate the URL variables.  | 
Beta Was this translation helpful? Give feedback.
-
| 🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as  2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the  Thank you for helping bring this Discussion to a resolution! 💬 | 
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
I would like to know if there’s a way to link the status of an Azure Pipeline from a different repository to a common check status window in GitHub.
Here’s the scenario:
Pipeline A runs first → it builds and generates artifacts (binaries of component A).
Pipeline B is then triggered, consuming the artifacts produced by Pipeline A.
I would like the results from both pipelines to be displayed together in the GitHub repository of Pipeline A, under the “All checks have passed” status window.
Has anyone implemented something similar?
Would this typically be achieved using pipeline resources, service connections, or by leveraging the GitHub Checks API?
I’m looking for recommended approaches or best practices to set this up.
Beta Was this translation helpful? Give feedback.
All reactions