Skip to content

Commit

Permalink
Update gha to use for-public-repos-only branch of security-alerts-action
Browse files Browse the repository at this point in the history
  • Loading branch information
bchen528 committed Oct 7, 2024
1 parent 11b1c9d commit 7a0cb32
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/push_dependabot_metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,26 @@ 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: heroku/security-alerts-action@main
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 }}

0 comments on commit 7a0cb32

Please sign in to comment.