Securely call CD servers / notification services after your Action finishes
Sending a string:
- name: Webhook
uses: Greenlight-Simulation/secure-actions-webhook@1.0.0
env:
REQUEST_URI: ${{ secrets.REQUEST_URI }}
REQUEST_DATA: "something_interesting"
HMAC_SECRET: ${{ secrets.HMAC_SECRET }}
Sending a json string:
- name: Webhook
uses: Greenlight-Simulation/secure-actions-webhook@1.0.0
env:
REQUEST_URI: ${{ secrets.REQUEST_URI }}
REQUEST_DATA: '{ "something": "interesting" }'
HMAC_SECRET: "secret_used_to_generate_signature"
The request will include the header X-Request-Signature
, which is the HMAC signature of the raw body (SHA256, Base64).
Verify it on your endpoint for integrity.