@@ -176,13 +176,10 @@ jobs:
176176
177177 - name : Slack Notification on Failure
178178 if : ${{ failure() }}
179- uses : rtCamp/action-slack-notify@v2
180- env :
181- SLACK_CHANNEL : ${{ secrets.slack_channel }}
182- SLACK_COLOR : ${{ job.status }}
183- SLACK_TITLE : Test Failed in CLI repository
184- SLACK_USERNAME : GithubActions
185- SLACK_WEBHOOK : ${{ secrets.slack_webhook }}
179+ uses : kosli-dev/reusable-actions/.github/actions/send-ci-failure-slack-message@debug
180+ with :
181+ slack_url : ${{ secrets.slack_webhook }}
182+ github_token : ${{ secrets.GITHUB_TOKEN }}
186183
187184 snyk-code-test :
188185 if : ${{ inputs.run_snyk }}
@@ -220,16 +217,13 @@ jobs:
220217 # --trail ${{ inputs.TRAIL_NAME }}
221218 # --scan-results snyk-code.json
222219 # --org ${{ inputs.KOSLI_ORG }}
223-
220+
224221 # - name: Slack Notification on Failure
225222 # if: ${{ failure() }}
226- # uses: rtCamp/action-slack-notify@v2
227- # env:
228- # SLACK_CHANNEL: ${{ secrets.slack_channel }}
229- # SLACK_COLOR: ${{ job.status }}
230- # SLACK_TITLE: Snyk Code Failed in CLI repository
231- # SLACK_USERNAME: GithubActions
232- # SLACK_WEBHOOK: ${{ secrets.slack_webhook }}
223+ # uses: kosli-dev/reusable-actions/.github/actions/send-ci-failure-slack-message@debug
224+ # with:
225+ # slack_url: ${{ secrets.slack_webhook }}
226+ # github_token: ${{ secrets.GITHUB_TOKEN }}
233227
234228 snyk-dependency-test :
235229 if : ${{ inputs.run_snyk }}
@@ -267,13 +261,10 @@ jobs:
267261 # --trail ${{ inputs.TRAIL_NAME }}
268262 # --scan-results snyk-dependency.json
269263 # --org ${{ inputs.KOSLI_ORG }}
270-
264+
271265 # - name: Slack Notification on Failure
272266 # if: ${{ failure() }}
273- # uses: rtCamp/action-slack-notify@v2
274- # env:
275- # SLACK_CHANNEL: ${{ secrets.slack_channel }}
276- # SLACK_COLOR: ${{ job.status }}
277- # SLACK_TITLE: Snyk Test Failed in CLI repository
278- # SLACK_USERNAME: GithubActions
279- # SLACK_WEBHOOK: ${{ secrets.slack_webhook }}
267+ # uses: kosli-dev/reusable-actions/.github/actions/send-ci-failure-slack-message@debug
268+ # with:
269+ # slack_url: ${{ secrets.slack_webhook }}
270+ # github_token: ${{ secrets.GITHUB_TOKEN }}
0 commit comments