# Can Github events send into queuing bus instead of webhook?

**URL:** <https://forum.ansible.com/t/can-github-events-send-into-queuing-bus-instead-of-webhook/2776>\
**Category:** Get Help\
**Tags:** azure, github, eda-server, collections\
**Created:** [December 6, 2023, 10:02pm UTC](https://forum.ansible.com/t/can-github-events-send-into-queuing-bus-instead-of-webhook/2776 "2023-12-06T22:02:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cha](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/cha/32/1731_2.png) [@cha](https://forum.ansible.com/u/cha)\
**Post date:** [December 6, 2023, 10:02pm UTC](https://forum.ansible.com/t/can-github-events-send-into-queuing-bus-instead-of-webhook/2776/1 "2023-12-06T22:02:07Z")

</div>

Hello,

After reading eda rulebook example for [github and source azure\_service\_bus](https://github.com/ansible/event-driven-ansible/blob/b1be83c35ba08a980e271e3fb9330847c0e2a54e/extensions/eda/rulebooks/github-ci-cd-rules.yml#L1-L22), I wonder how it’s possible to configure Github to send events into Azure service bus.

Or since Github can only send webhooks, there is custom service which inject the webhook payload into queue.

```auto
- name: GitHub Deploy Git Hook Rules
  hosts: all
  sources:
    - ansible.eda.azure_service_bus:
        conn_str: "{{connection_str}}"
        queue_name: "{{queue_name}}"
      filters:
        - benthomasosn.eda.json_filter:
            include_keys: ['clone_url']
            exclude_keys: ['*_url', '_links', 'base', 'sender', 'owner', 'user']
        - benthomasosn.eda.dashes_to_underscores:
  rules:
    - name: Pull Request Open
      condition: event.meta.headers.X_Github_Event == "pull_request" and event.payload.action == "opened"
      action:
        post_event:
          fact:
            repository_name: "{{event.payload.repository.full_name}}"
            repo: "{{event.payload.pull_request.head.repo.clone_url}}"
            ref: "{{event.payload.pull_request.head.ref}}"
            pr: "{{event.payload.number}}"
            sha: "{{event.payload.pull_request.head.sha}}"

```
