Skip to content

Commit

Permalink
Update cron.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
simar7 authored Oct 19, 2024
1 parent ed7cd5c commit de83b7d
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,13 @@ jobs:
AWS_REGION: us-east-1

- name: Microsoft Teams Notification
uses: skitionek/notify-microsoft-teams@master
## Until the PR with the fix for the AdaptivCard version is merged yet
## https://github.com/Skitionek/notify-microsoft-teams/pull/96
## Use the aquasecurity fork
uses: aquasecurity/notify-microsoft-teams@master
if: failure()
with:
webhook_url: ${{ secrets.MSTEAMS_WEBHOOK }}
webhook_url: ${{ secrets.TRIVY_MSTEAMS_WEBHOOK }}
needs: ${{ toJson(needs) }}
job: ${{ toJson(job) }}
steps: ${{ toJson(steps) }}
Expand All @@ -160,19 +163,3 @@ jobs:
- uses: actions/checkout@v4
- uses: gautamkrishnar/keepalive-workflow@v2

notify-on-teams:
name: Notify github actions status in MS teams
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Microsoft Teams Notification
## Until the PR with the fix for the AdaptivCard version is merged yet
## https://github.com/Skitionek/notify-microsoft-teams/pull/96
## Use the aquasecurity fork
uses: aquasecurity/notify-microsoft-teams@master
if: failure()
with:
webhook_url: ${{ secrets.TRIVY_MSTEAMS_WEBHOOK }}
needs: ${{ toJson(needs) }}
job: ${{ toJson(job) }}
steps: ${{ toJson(steps) }}

0 comments on commit de83b7d

Please sign in to comment.