https://github.com/env0/saga
Slack App to inovke GitHub Action
https://github.com/env0/saga
Last synced: about 1 year ago
JSON representation
Slack App to inovke GitHub Action
- Host: GitHub
- URL: https://github.com/env0/saga
- Owner: env0
- Created: 2022-04-17T12:15:26.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-07-05T21:47:30.000Z (almost 3 years ago)
- Last Synced: 2025-06-18T09:56:59.404Z (about 1 year ago)
- Language: TypeScript
- Size: 157 KB
- Stars: 1
- Watchers: 8
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# **S**lack **A**pp to trigger **G**itHub **A**ctions (aka SAGA)
This is a Pulumi Stack that creates an API Gateway endpoint with Lambda that triggers GitHub `dispatch_workflow` GitHub Actions.
- At least one argument to Slack's slash command is expected
- The first argument will be the event name, prefixed with `saga-`.
- The rest of the arguments are sent to GitHub Action inside the `client_payload` as `args`
- The output of this stack is an API endpoint that can be used as the receiving end of a [Slack App Slash Command](https://api.slack.com/interactivity/slash-commands)
## Deployment
### Required Environment Variables
- `GITHUB_TOKEN` - the GitHub token used to interact with GitHub Actions
- `GITHUB_OWNER` - GitHub owner of the repository holding the GitHub Action
- `GITHUB_REPO` - GitHub repository holding the GitHub Action
- `SLACK_SIGNING_SECRET` - the signing secret of the triggering Slack App
### Outputs
`endpoint` - the endpoint to be set as the Slack App Slash Command target