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
15 changes: 10 additions & 5 deletions .github/workflows/rsr-antipattern.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ jobs:

- name: Check for TypeScript
run: |
if find . -name "*.ts" -o -name "*.tsx" | grep -v node_modules | grep -q .; then
# Allow legacy extensions/vscode until ReScript conversion (tracked in TS_CONVERSION_NEEDED.md)
TS_FILES=$(find . -name "*.ts" -o -name "*.tsx" | grep -v node_modules | grep -v 'extensions/vscode' || true)
if [ -n "$TS_FILES" ]; then
echo "❌ TypeScript files detected - use ReScript instead"
find . -name "*.ts" -o -name "*.tsx" | grep -v node_modules
echo "$TS_FILES"
exit 1
fi
echo "✅ No TypeScript files"
echo "✅ No TypeScript files (except legacy extensions/vscode pending conversion)"

- name: Check for Go
run: |
Expand Down Expand Up @@ -56,11 +58,14 @@ jobs:

- name: Check for tsconfig
run: |
if [ -f "tsconfig.json" ]; then
# Allow legacy extensions/vscode until ReScript conversion
TSCONFIGS=$(find . -name "tsconfig.json" | grep -v 'extensions/vscode' | grep -v node_modules || true)
if [ -n "$TSCONFIGS" ]; then
echo "❌ tsconfig.json detected - use ReScript instead"
echo "$TSCONFIGS"
exit 1
fi
echo "✅ No tsconfig.json"
echo "✅ No tsconfig.json (except legacy extensions/vscode pending conversion)"

- name: Verify Deno presence (if package.json exists)
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/security-policy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
echo "$WEAK_CRYPTO"
fi

# Block HTTP URLs (except localhost)
HTTP_URLS=$(grep -rE 'https://[^l][^o][^c]' --include="*.py" --include="*.js" --include="*.ts" --include="*.go" --include="*.rs" --include="*.yaml" --include="*.yml" . 2>/dev/null | grep -v 'localhost\|127.0.0.1\|example\|test\|spec' | head -5 || true)
# Block HTTP URLs (except localhost) - require HTTPS
HTTP_URLS=$(grep -rE 'http://[^l][^o][^c]' --include="*.py" --include="*.js" --include="*.ts" --include="*.go" --include="*.rs" --include="*.yaml" --include="*.yml" . 2>/dev/null | grep -v 'localhost\|127.0.0.1\|example\|test\|spec\|\.well-known' | head -5 || true)
if [ -n "$HTTP_URLS" ]; then
echo "⚠️ HTTP URLs found. Use HTTPS:"
echo "⚠️ Insecure HTTP URLs found. Use HTTPS:"
echo "$HTTP_URLS"
fi

Expand Down
Loading
Loading