diff --git a/.github/workflows/notify-ci-failure.yml b/.github/workflows/notify-ci-failure.yml index 06f9e2430..6b6e5a968 100644 --- a/.github/workflows/notify-ci-failure.yml +++ b/.github/workflows/notify-ci-failure.yml @@ -6,7 +6,21 @@ on: types: [completed] branches: [main] +permissions: + contents: read + jobs: check-and-notify: - uses: 'ForestAdmin/github-workflows/.github/workflows/notify-ci-failure.yml@main' - secrets: inherit + uses: forestadmin/.github/.github/workflows/notify-ci-failure.yml@main + with: + slack_channel_id: GAZF5Q5RV + workflow_name: ${{ github.event.workflow_run.name }} + run_url: ${{ github.event.workflow_run.html_url }} + conclusion: ${{ github.event.workflow_run.conclusion }} + head_branch: ${{ github.event.workflow_run.head_branch }} + event: ${{ github.event.workflow_run.event }} + head_sha: ${{ github.event.workflow_run.head_sha }} + author: ${{ github.event.workflow_run.head_commit.author.name }} + commit_message: ${{ github.event.workflow_run.head_commit.message }} + secrets: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}