Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions v1/workflows
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Security Headers Check

on:
deployment_status:

jobs:
check:
if: github.event.deployment_status.state == 'success'
runs-on: ubuntu-latest
steps:
- name: Check Security Headers
run: |
URL="${{ github.event.deployment_status.environment_url }}"
HEADERS=$(curl -sI "$URL")
echo "$HEADERS"

# Check required headers
if echo "$HEADERS" | grep -qi "content-security-policy"; then
echo "✅ CSP header found"
else
echo "❌ Missing CSP header"
fi

if echo "$HEADERS" | grep -qi "x-frame-options"; then
echo "✅ X-Frame-Options header found"
else
echo "❌ Missing X-Frame-Options header"
fi
Loading