{"id":28069815,"url":"https://github.com/keptn/gh-action-send-event","last_synced_at":"2025-08-09T07:11:12.266Z","repository":{"id":44547216,"uuid":"357524588","full_name":"keptn/gh-action-send-event","owner":"keptn","description":"GH Action to send an event to a Keptn installation","archived":true,"fork":false,"pushed_at":"2022-02-08T20:19:16.000Z","size":40,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-05-12T19:15:24.299Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/keptn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-13T11:14:51.000Z","updated_at":"2023-06-29T08:00:23.000Z","dependencies_parsed_at":"2022-08-12T11:20:22.869Z","dependency_job_id":null,"html_url":"https://github.com/keptn/gh-action-send-event","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keptn%2Fgh-action-send-event","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keptn%2Fgh-action-send-event/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keptn%2Fgh-action-send-event/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keptn%2Fgh-action-send-event/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keptn","download_url":"https://codeload.github.com/keptn/gh-action-send-event/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253805847,"owners_count":21967054,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-12T19:15:25.511Z","updated_at":"2025-05-12T19:15:26.155Z","avatar_url":"https://github.com/keptn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gh-action-send-event\n\nGH Action to send an event to a Keptn deployment\n\n\n\n## Inputs\n| Name | Mandatory | Format | Description |\n|--|--|--|--|\n| keptnApiUrl | yes | url | URL pointing to the keptn events API (Example: http://example.nip.io/api/v1/event ) | \n| keptnApiToken | yes | string | API Token to be used for sending the event |\n| event | yes | JSON | Event to be sent (See: [Keptn Cloud Events](https://www.google.com/search?q=keptn%20spec)) | \n\n## Outputs\n\n| Name | Description |\n|--|--|\n| keptnContext | The Keptn context bound to the sent event |\n\n## Example Usage\n\nThe following example uses this Github Action to send an event which triggers a sequence called `delivery`\nwhenever something is pushed to the repository.\n\n```yaml\nname: Keptn Send Event\non: [push]\n\njobs:\n  send_keptn_event:\n    runs-on: ubuntu-latest\n    name: Sends Keptn Events\n    steps:\n    - name: Checkout\n      uses: actions/checkout@v2\n    - name: Send Keptn Event\n      id: send-keptn-event\n      uses: keptn/gh-action-send-event@main\n      with:\n        keptnApiUrl: ${{ secrets.KEPTN_API_URL }}\n        keptnApiToken: ${{ secrets.KEPTN_API_TOKEN }}\n        event: |\n          {\n            \"data\": {\n              \"configurationChange\": {\n                \"values\": {\n                  \"image\": \"docker.io/mongo:4.2.2\"\n                }\n              },\n              \"deployment\": {\n                \"deploymentstrategy\": \"direct\"\n              },\n              \"message\": \"\",\n              \"project\": \"sockshop2\",\n              \"result\": \"\",\n              \"service\": \"carts-db\",\n              \"stage\": \"dev\",\n              \"status\": \"\"\n            },\n            \"source\": \"gh\",\n            \"specversion\": \"1.0\",\n            \"type\": \"sh.keptn.event.dev.delivery.triggered\",\n            \"shkeptnspecversion\": \"0.2.1\"\n          }\n    - name: Print the Keptn Context\n      run: echo \"The keptn context is ${{ steps.send-keptn-event.outputs.keptnContext }}\"\n```\n\n*Note that the fields `shkeptncontext`, `time` and `id` in the event to be sent are omitted **on purpose** because these will be generated automatically\nby the API endpoint of Keptn.*","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeptn%2Fgh-action-send-event","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeptn%2Fgh-action-send-event","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeptn%2Fgh-action-send-event/lists"}