# Github release events are not filtered correctly

**URL:** <https://community.codefresh.io/t/github-release-events-are-not-filtered-correctly/974>\
**Category:** Pipeline Triggers\
**Created:** [April 23, 2024, 5:33pm UTC](https://community.codefresh.io/t/github-release-events-are-not-filtered-correctly/974 "2024-04-23T17:33:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hairyhum](https://sea1.discourse-cdn.com/flex019/user_avatar/community.codefresh.io/hairyhum/32/632_2.png) [@hairyhum](https://community.codefresh.io/u/hairyhum)\
**Post date:** [April 23, 2024, 5:33pm UTC](https://community.codefresh.io/t/github-release-events-are-not-filtered-correctly/974/1 "2024-04-23T17:33:23Z")

</div>

Hi,  
I’m trying to set up a pipeline which will be triggered by github release.  
Github currently sends multiple events when a new release is created, namely `release.created`, `release.prereleased`, `release.published`.  
There is an option in codefresh trigger configuration to select only `release.prereleased` (or `release.released`) events and I would like the pipeline to be only triggered by this specific event.  
But when I select only `release.released` and I publish a pre-release on github, the pipeline actually triggers with `Release published` event, which I didn’t select. Same if I configure `release.prereleased`.  
For some reason it’s not possible to filter out the `published` event and it always triggers the pipeline, although it’s not checked in the trigger configuration UI and is not present in the YAML for the pipeline.

That looks like a bug to me.

Also is there any workaround I can use?

Thanks.

---

<div class="post-metadata">

**Author:** ![Kostis](https://sea1.discourse-cdn.com/flex019/user_avatar/community.codefresh.io/kostis/32/391_2.png) [@Kostis](https://community.codefresh.io/u/Kostis)\
**Post date:** [April 30, 2024, 9:02am UTC](https://community.codefresh.io/t/github-release-events-are-not-filtered-correctly/974/2 "2024-04-30T09:02:57Z")

</div>

Hello

The hacky workaround would be to create a generic pipeline and then parse the payload yourself and use conditions to exit or continue the pipeline [Git triggers · Codefresh | Docs](https://codefresh.io/docs/docs/pipelines/triggers/git-triggers/#accessing-webhook-content-of-the-trigger-directly)

However, it is better to report this with a support issue so that we can investigate and fix it.

Kostis

---

<div class="post-metadata">

**Author:** ![esmarkowski](https://sea1.discourse-cdn.com/flex019/user_avatar/community.codefresh.io/esmarkowski/32/635_2.png) [@esmarkowski](https://community.codefresh.io/u/esmarkowski)\
**Post date:** [May 10, 2024, 11:25am UTC](https://community.codefresh.io/t/github-release-events-are-not-filtered-correctly/974/3 "2024-05-10T11:25:50Z")

</div>

We are also experiencing this bug. Our pipeline is subscribed to `release.prereleased` and `release.released`. However, codefresh acts as though it’s also subscribed to `release.published` and triggers multiple pipeline runs, making `release.prereleased` and `release.released` unusable.
