Algo 1/add dependabot alert detection #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Send Dependabot Alerts to Teams | |
on: | |
pull_request: # tempoary to test the workflow | |
branches: | |
- main | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: "8 15 * * *" | |
jobs: | |
send-alerts-to-teams: | |
name: Send Dependabot Alerts to Teams | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
security-events: read | |
steps: | |
- name: Fetch alerts & send to teams | |
id: send-alerts | |
uses: Azure-Samples/send-dependabot-alerts-to-teams@main | |
with: | |
milliseconds: 1 | |
teams-webhook-url: ${{ secrets.TEAMS_WEBHOOK_URL }} | |
token: ${{ secrets.LIST_ALERTS_PAT }} |