Skip to content
This repository was archived by the owner on Jun 9, 2026. It is now read-only.
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
31 changes: 10 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,36 +58,26 @@ jobs:
# hyphens, underscores, dots.
# Short values (< 20 chars) are excluded to avoid false positives from
# module names like 'task-manager', 'publishTask', 'publish-task-model', etc.
# Lines annotated with "# pragma: allowlist secret" are intentional env-var
# reads and are excluded from the scan.

# Search in common code directories
SEARCH_DIRS="Tools .opencode skill-packs .github"
SEARCH_DIRS="Tools .opencode skill-packs"

echo "🔍 Scanning for hardcoded secrets..."
FOUND=0
for dir in $SEARCH_DIRS; do
if [ -d "$dir" ]; then
echo " Scanning $dir..."
# Find potential secrets (include YAML configs)
# Filter: exclude example strings in documentation, BountyPrograms, test data
RESULT=$(grep -rEin "sk-[a-zA-Z0-9._-]{20,}|(api[_-]?key|client[_-]?secret|password|token)[[:space:]]*[:=][[:space:]]*['\"]?[a-zA-Z0-9._-]{20,}['\"]?" "$dir" --include="*.ts" --include="*.js" --include="*.json" --include="*.yaml" --include="*.yml" --exclude-dir="node_modules" 2>/dev/null | grep -v "BountyPrograms.json" | grep -vi "EXAMPLES OF GOOD\|EXAMPLES OF BAD\|claimed-task-complete-when\|ignored-explicit-python\|assistant-deleted-users\|overwrote-working-code\|asked-clarifying-question" || true)

if [ -n "$RESULT" ]; then
# Filter out process.env references (environment variable lookups, not hardcoded secrets)
FILTERED=$(echo "$RESULT" | grep -vi "process\.env" | grep -vi "\.env\.example" || true)

if [ -n "$FILTERED" ]; then
# Only show file:line, not the content (to avoid exposing secrets in logs)
echo "❌ Potential hardcoded secret found:"
echo "$FILTERED" | cut -d: -f1,2
FOUND=1
fi
if grep -rEin "sk-[a-zA-Z0-9._-]{20,}|(api[_-]?key|client[_-]?secret|password|token)[[:space:]]*[:=][[:space:]]*['\"]?[a-zA-Z0-9._-]{20,}['\"]?" \
--exclude-dir=node_modules \
"$dir" --include="*.ts" --include="*.js" 2>/dev/null \
| grep -v "pragma: allowlist secret"; then
FOUND=1
fi
fi
done

if [ $FOUND -eq 1 ]; then
echo ""
echo "❌ Secret scan failed! Please remove hardcoded secrets or use environment variables."
echo "❌ Potential hardcoded secret found!"
exit 1
fi

Expand All @@ -96,8 +86,7 @@ jobs:
# Test job — vorbereitet für wenn Tests existieren
- name: Tests (if tests exist)
run: |
# Exclude node_modules to avoid finding test files in dependencies
if find . \( -name "*.test.ts" -o -name "*.spec.ts" \) -not -path "*/node_modules/*" | grep -q .; then
if find . -name "*.test.ts" -o -name "*.spec.ts" | grep -q .; then
echo "Test files found — running tests..."
bun test
else
Expand Down
24 changes: 24 additions & 0 deletions .opencode/PAI/Tools/pipeline-monitor-ui/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
50 changes: 50 additions & 0 deletions .opencode/PAI/Tools/pipeline-monitor-ui/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh

## Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

- Configure the top-level `parserOptions` property like this:

```js
export default tseslint.config({
languageOptions: {
// other options...
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
},
})
```

- Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked`
- Optionally add `...tseslint.configs.stylisticTypeChecked`
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config:

```js
// eslint.config.js
import react from 'eslint-plugin-react'

export default tseslint.config({
// Set the react version
settings: { react: { version: '18.3' } },
plugins: {
// Add the react plugin
react,
},
rules: {
// other rules...
// Enable its recommended rules
...react.configs.recommended.rules,
...react.configs['jsx-runtime'].rules,
},
})
```
Loading
Loading