Skip to content

Update zizmorcore/zizmor-action action to v0.6.0 #117

Update zizmorcore/zizmor-action action to v0.6.0

Update zizmorcore/zizmor-action action to v0.6.0 #117

Workflow file for this run

name: PR Notification
on:
pull_request_target:
types: [opened]
permissions: {}
jobs:
notify:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Notify Slack
if: github.actor != 'github-actions[bot]'
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_OSS_ALERTS }}
PR_TITLE: ${{ github.event.pull_request.title }}
PR_URL: ${{ github.event.pull_request.html_url }}
PR_NUMBER: ${{ github.event.pull_request.number }}
PR_AUTHOR: ${{ github.actor }}
run: |
if [ -n "$SLACK_WEBHOOK" ]; then
payload=$(jq -nc --arg title "$PR_TITLE" --arg author "$PR_AUTHOR" \
--arg url "$PR_URL" --arg num "$PR_NUMBER" \
'{text: "New PR on pathfinder: *\($title)* by \($author)\n<\($url)|View PR #\($num)>"}')
curl -sf -X POST "$SLACK_WEBHOOK" \
-H 'Content-Type: application/json' \
-d "$payload" || true
fi