mirror of
https://github.com/MeshEnvy/mesh-forge.git
synced 2026-08-06 17:03:28 +02:00
feat: implement bearer token verification for GitHub webhook to enhance security
This commit is contained in:
@@ -33,6 +33,7 @@ jobs:
|
||||
env:
|
||||
CONVEX_URL: ${{ inputs.convex_url }}
|
||||
BUILD_ID: ${{ inputs.build_id }}
|
||||
CONVEX_BUILD_TOKEN: ${{ secrets.CONVEX_BUILD_TOKEN }}
|
||||
steps:
|
||||
- name: Setup status update helper
|
||||
shell: bash
|
||||
@@ -47,6 +48,7 @@ jobs:
|
||||
fi
|
||||
curl -sSf -X POST "$CONVEX_URL/github-webhook" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $CONVEX_BUILD_TOKEN" \
|
||||
-d "$payload" || true
|
||||
}
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user