Skip to content

Commit f1541df

Browse files
committed
security(aikido): implement and fix detected vulnerabities
1 parent 624c4fc commit f1541df

6 files changed

Lines changed: 224 additions & 71 deletions

File tree

.github/actions/start-preview-server/action.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,23 @@ runs:
3232
steps:
3333
- name: Start VitePress preview
3434
shell: bash
35-
run: bun run docs:preview -- --port ${{ inputs.port }} &
35+
env:
36+
PORT: ${{ inputs.port }}
37+
run: bun run docs:preview -- --port $PORT &
3638

3739
- name: Wait for preview server to be ready
3840
shell: bash
41+
env:
42+
PORT: ${{ inputs.port }}
43+
BASE: ${{ inputs.base }}
44+
TIMEOUT: ${{ inputs.timeout }}
3945
run: |
40-
URL="http://localhost:${{ inputs.port }}${{ inputs.base }}"
46+
URL="http://localhost:${PORT}${BASE}"
4147
echo "Waiting for ${URL} …"
42-
DEADLINE=$(( $(date +%s) + ${{ inputs.timeout }} ))
48+
DEADLINE=$(( $(date +%s) + ${TIMEOUT} ))
4349
until curl -sf "${URL}" > /dev/null 2>&1; do
4450
if [ "$(date +%s)" -ge "${DEADLINE}" ]; then
45-
echo "::error::Preview server did not respond within ${{ inputs.timeout }} s on ${URL}."
51+
echo "::error::Preview server did not respond within ${TIMEOUT} s on ${URL}."
4652
exit 1
4753
fi
4854
echo "… retrying in 2 s"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
applyTo: "**"
3+
description: Aikido MCP Security Rules
4+
---
5+
6+
# Project security best practices
7+
8+
- Always run **aikido_full_scan** on generated, added and modified first-party code, unless the prompt explicitly says not to.
9+
- Always provide the full file content to the scanner.
10+
- If the scan identifies any security issues in newly generated or modified code, fix the issues using the scan result and remediation provided by **Aikido**.
11+
- After applying fixes, run aikido_full_scan again to verify that the issues were successfully resolved, and no new issues were introduced.
12+
- Repeat the fix-and-rescan cycle until the code passes with zero remaining or newly introduced security issues.
13+
- If the **Aikido MCP server** required to run scans is not installed or not started successfully, inform the user with a message directing them to install it using the official Aikido MCP setup guide at:
14+
**https://help.aikido.dev/ide-plugins/aikido-mcp**.

0 commit comments

Comments
 (0)