Skip to content

WIP: Ruby release workflow #4

WIP: Ruby release workflow

WIP: Ruby release workflow #4

Workflow file for this run

name: Security Audit

Check failure on line 1 in .github/workflows/security-audit.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/security-audit.yml

Invalid workflow file

(Line: 4, Col: 3): Unexpected value 'dependabot_alert'
on:
dependabot_alert:
types: [created, reintroduced]
permissions:
contents: read
jobs:
notify-slack:
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- name: Notify Slack
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
SLACK_CHANNEL: ${{ vars.SLACK_SDK_SECURITY_CHANNEL }}
ALERT_URL: ${{ github.event.alert.html_url }}
PACKAGE: ${{ github.event.alert.dependency.package.name }}
SEVERITY: ${{ github.event.alert.security_advisory.severity }}
SUMMARY: ${{ github.event.alert.security_advisory.summary }}
run: |
curl -s -X POST "https://slack.com/api/chat.postMessage" \
-H "Authorization: Bearer $SLACK_BOT_TOKEN" \
-H "Content-Type: application/json" \
-d "{
\"channel\": \"$SLACK_CHANNEL\",
\"text\": \":warning: *braintrust-sdk-ruby* Dependabot alert ($SEVERITY): $PACKAGE — $SUMMARY <$ALERT_URL|View alert>\"
}"