Skip to content
Merged
Show file tree
Hide file tree
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
18 changes: 16 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI Pipeline
on:
pull_request:
branches: ['main'] # Run on PRs to main
paths: ['be-flask/**']
paths: ['be-flask/**', 'terraform/**']
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -184,7 +184,21 @@ jobs:
echo '```' >> $GITHUB_STEP_SUMMARY
VULNS_FOUND=true
fi


# Checkov
cd ..
echo "### 🔒 Checkov (Terraform) Results" >> $GITHUB_STEP_SUMMARY
pip install checkov
if checkov --framework terraform --directory terraform --quiet --compact; then
echo "✅ No security issues found" >> $GITHUB_STEP_SUMMARY
else
echo "⚠️ Security issues found in Terraform configuration" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
checkov --framework terraform --directory terraform --compact >> $GITHUB_STEP_SUMMARY || true
echo '```' >> $GITHUB_STEP_SUMMARY
VULNS_FOUND=true
fi

echo "has-vulnerabilities=$VULNS_FOUND" >> $GITHUB_OUTPUT

notify:
Expand Down
1 change: 1 addition & 0 deletions be-flask/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,3 +174,4 @@ def get_status(task_id):
if __name__ == '__main__':
app.run()