Skip to content

Commit

Permalink
test slack webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenruizdegauna committed Feb 6, 2025
1 parent 1765d1f commit 0f83133
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/test_slack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: . 🕵🏼 Trivy scanner for docker
on:
push:
branches:
- test_slack_webhook
jobs:
trivy_scanner_scheduled:
name: Scheduled Trivy scanner for docker
runs-on: ubuntu-20.04
steps:
- name: Send notification to Slack Workflow
id: slack
uses: slackapi/slack-github-action@v1.22.0
with:
# This data can be any valid JSON from a previous step in the GitHub Action
payload: |
{
"text": ":rotating_light: Hello my friend :wave:. This is a test. If you see this, please ping @rruizdegauna . Thanks :homer-dissapear: :rotating_light:"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.CAOS_SLACK_WEBHOOK }}

0 comments on commit 0f83133

Please # to comment.