Send data to Security Alerts #6
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 data to Security Alerts | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 10 * * *' | |
jobs: | |
send-alerts: | |
runs-on: pub-hk-ubuntu-24.04-ip | |
steps: | |
- name: Create GitHub App Token | |
uses: actions/create-github-app-token@v1 | |
id: app-token | |
with: | |
app-id: ${{ secrets.SECURITY_ALERTS_GH_APP_ID }} | |
private-key: ${{ secrets.SECURITY_ALERTS_GH_APP_PRIVKEY }} | |
owner: heroku | |
- name: Checkout code with security-alerts-action | |
uses: actions/checkout@v4 | |
with: | |
repository: heroku/security-alerts-action | |
token: ${{ steps.app-token.outputs.token }} | |
ref: for-public-repos-only | |
- name: Send data to Security Alerts | |
uses: ./ | |
with: | |
gh-app-id: ${{ secrets.SECURITY_ALERTS_GH_APP_ID }} | |
gh-app-privkey: ${{ secrets.SECURITY_ALERTS_GH_APP_PRIVKEY }} | |
webhook-url: ${{ secrets.SECURITY_ALERTS_WEBHOOK_URL }} | |
sa-token: ${{ secrets.SECURITY_ALERTS_TOKEN }} | |
gh-app-token: ${{ steps.app-token.outputs.token }} |