tektoncd / tektoncd/pipelines-as-code

Add support for using github workflow_run event type as a trigger

Open
#2,256 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature github priority/medium
Dominant language
Go
Stars
214
Forks
144
Avg merge
2d 11h
Merged PRs (30d)
27

Description

Based on documentation, currently only push and pull_request events from github are supported.

As I do want to trigger a pipeline when a github scheduled workflow fails, I need to be able to react on workflow_run event type, while filtering by payload with action=='completed' && workflows_run.name == 'jobname' && workflow_run.conclusion != 'success'.

If I understand correctly this is not supported right now.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the existing GitHub trigger support for push and pull_request events and the linked workflow_run webhook documentation. Determine how event payload filters are represented, then add support for workflow_run with completed, workflow-name, and unsuccessful-conclusion filtering; done means a scheduled workflow failure can trigger the pipeline as requested.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, go
Domain
ci-cd, devops
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.