Skip to content

slack-approval-kubmeta

Actions
Custom action to send approval request to Slack from GitHub Actions
v1.0.1
Latest
Star (2)

Tags

 (1)

slack-approval

custom action to send approval request to Slack

  • Post a message in Slack with a "Aoorove" and "Reject" buttons.
  • Clicking on "Approve" will execute next steps.
  • Clicking on "Reject" will cause workflow to fail.

How To Use

  • First, create a Slack App and install in your workspace.
  • Second, add chat:write and im:write to OAuth Scope on OAuth & Permissions page.
  • Finally, Enable Socket Mode.
jobs:
  approval:
    runs-on: ubuntu-latest
    steps:
      - name: send approval
        uses: kubmeta/slack-approval@main
        env:
          SLACK_APP_TOKEN: ${{ secrets.SLACK_APP_TOKEN }}
          SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
          SLACK_SIGNING_SECRET: ${{ secrets.SLACK_SIGNING_SECRET }}
          SLACK_CHANNEL_ID: ${{ secrets.SLACK_CHANNEL_ID }}
        timeout-minutes: 10
  • Set environment variables

    • SLACK_APP_TOKEN

      • App-level tokens on Basic Information page. (starting with xapp- )
    • SLACK_BOT_TOKEN

      • Bot-level tokens on OAuth & Permissions page. (starting with xoxb- )
    • SLACK_SIGNING_SECRET

      • Signing Secret on Basic Information page.
    • SLACK_CHANNEL_ID

      • Channel ID for which you want to send approval.
  • Set timeout-minutes

    • Set the time to wait for approval.

slack-approval-kubmeta is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Custom action to send approval request to Slack from GitHub Actions
v1.0.1
Latest

Tags

 (1)

slack-approval-kubmeta is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.