---
title: Github Webhook Info
slug: homologacao-atmosphere/github-webhook-info
description: Learn how to effectively use webhooks in GitHub with this comprehensive document. Discover the essential parameters for authentication, including GitHub URL, password, repository, token, and user. Explore various authentication methods and gain insights o
createdAt: 2021-03-16T18:09:43.000Z
---

## Resumo

- Consultar informações sobre webhooks do GitHub

## Parâmetros

| **Parâmetro**                                    | **Tipo** | **Escolhas \| Valor Padrão**            | **Comentários**                                            |
| ------------------------------------------------ | -------- | --------------------------------------- | ---------------------------------------------------------- |
| github\_url - required                           | string   | Default:<br />"https\://api.github.com" | URL base da API do github                                  |
| password                                         | string   |                                         | Senha para autenticação no GitHub                          |
| repository - required <br /><br />aliases: repo  | string   |                                         | Nome completo do repositório para configurar um hook<br /> |
| token                                            | string   |                                         | Token para autenticação no GitHub                          |
| user - required                                  | string   |                                         | Usuário para autenticação no GitHub                        |




## Exemplos

```yaml
# listar hooks para um repositório (autenticação por senha)
  github_webhook_info:
    repository: atmosphere/atmosphere
    user: "{{ github_user }}"
    password: "{{ github_password }}"
  register: atmosphere_webhooks
  
# listar hooks para um repositório no GitHub Enterprise (token auth)
  github_webhook_info:
    repository: myorg/myrepo
    user: "{{ github_user }}"
    token: "{{ github_user_api_token }}"
    github_url: https://github.example.com/api/v3/
  register: myrepo_webhooks
```

## Valores Retornados

| **Chave** | **Tipo**               | **Retornado quando** | **Descrição**                              |
| --------- | ---------------------- | -------------------- | ------------------------------------------ |
| hooks     | list / elements=string | sempre               | Uma lista de hooks que existem para o repo |



