[GH-ISSUE #8] Support for custom headers #713

Closed
opened 2026-04-16 13:52:46 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @prescottprue on GitHub (Dec 20, 2019).
Original GitHub issue: https://github.com/joelwmale/webhook-action/issues/8

Thanks for the package! It would be awesome if passing headers was supported. Maybe something like so:

- name: Webhook
   uses: joelwmale/webhook-action@master
   env:
     WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
     data: "{'deployment': 'finished', 'project': 'actions'}"
     headers: ['Some-Header: 123ASDF', 'Some-Other-Header: 123ASDF']

I have also seen with commonly used for actions since env:

- name: Webhook
   uses: joelwmale/webhook-action@master
   with:
     headers: ['Some-Header: 123ASDF']
   env:
     WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
     data: "{'deployment': 'finished', 'project': 'actions'}"
Originally created by @prescottprue on GitHub (Dec 20, 2019). Original GitHub issue: https://github.com/joelwmale/webhook-action/issues/8 Thanks for the package! It would be awesome if passing headers was supported. Maybe something like so: ```yaml - name: Webhook uses: joelwmale/webhook-action@master env: WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }} data: "{'deployment': 'finished', 'project': 'actions'}" headers: ['Some-Header: 123ASDF', 'Some-Other-Header: 123ASDF'] ``` I have also seen `with` commonly used for actions since `env`: ```yaml - name: Webhook uses: joelwmale/webhook-action@master with: headers: ['Some-Header: 123ASDF'] env: WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }} data: "{'deployment': 'finished', 'project': 'actions'}" ```
Author
Owner

@ghostsquad commented on GitHub (Mar 20, 2020):

yes, this would be cool. Along those lines, what about authentication?

<!-- gh-comment-id:601824749 --> @ghostsquad commented on GitHub (Mar 20, 2020): yes, this would be cool. Along those lines, what about authentication?
Author
Owner

@joelwmale commented on GitHub (Aug 26, 2020):

I have added support for custom headers as part of v2.0.0.

<!-- gh-comment-id:680392277 --> @joelwmale commented on GitHub (Aug 26, 2020): I have added support for custom headers as part of [v2.0.0](https://github.com/joelwmale/webhook-action/releases/tag/2.0.0).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/webhook-action#713