Skip to content
Open
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
6 changes: 6 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": [
"next/core-web-vitals",
"next/typescript"
]
}
11 changes: 11 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@


set -e

echo "Running Pre-commit Hooks..."

npm run typecheck

npx lint-staged

echo "All checks passed!"
8 changes: 8 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
fund=false
audit=false

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Verify whether compensating dependency security checks exist in CI/docs.
# Expected: at least one workflow or script runs npm audit (or equivalent SCA).

fd -HI 'package.json|pnpm-workspace.yaml|yarn.lock|package-lock.json|*.yml|*.yaml|README.md|SECURITY.md|CONTRIBUTING.md' . >/dev/null

echo "== Search workflows/scripts for dependency vulnerability scanning =="
rg -n -C 2 --iglob '**/*.yml' --iglob '**/*.yaml' --iglob '**/package.json' \
  'npm audit|pnpm audit|yarn audit|dependency-review|osv-scanner|snyk|trivy|dependabot|codeql'

echo
echo "== Search docs for stated alternative security scanning process =="
rg -n -C 2 --iglob '**/README.md' --iglob '**/SECURITY.md' --iglob '**/CONTRIBUTING.md' \
  'audit|vulnerab|dependency scan|SCA|security scan'

Repository: StabilityNexus/OrbOracle-EVM-Frontend

Length of output: 686


🏁 Script executed:

#!/bin/bash
# Find and search CI workflows and security documentation for vulnerability scanning

echo "=== Finding CI workflow files ==="
find . -path './node_modules' -prune -o -type f \( -name '*.yml' -o -name '*.yaml' \) -print | grep -E '(\.github|\.gitlab|\.circleci|\.travis)' | head -20

echo ""
echo "=== Finding security-related documentation ==="
find . -path './node_modules' -prune -o -type f \( -name 'SECURITY*' -o -name 'CONTRIBUTING*' \) -print

echo ""
echo "=== Searching for audit/vulnerability scanning in YAML files ==="
rg -t yaml 'audit|npm audit|dependency|vulnerab|scan' --max-count=5

echo ""
echo "=== Searching .npmrc content ==="
cat -n .npmrc 2>/dev/null || echo ".npmrc not found"

echo ""
echo "=== Searching for audit in JSON/JS files ==="
rg 'npm audit|npm ci|npm install' -t json -t js --max-count=5 package.json 2>/dev/null || echo "Search returned no results"

Repository: StabilityNexus/OrbOracle-EVM-Frontend

Length of output: 734


🏁 Script executed:

cat -n ./.github/workflows/nextjs.yml

Repository: StabilityNexus/OrbOracle-EVM-Frontend

Length of output: 4163


Add compensating dependency vulnerability scanning to CI.

Setting audit=false disables npm's vulnerability checks during local installs and CI. No alternative security scan (npm audit, Dependabot, SAST, or dependency-review) exists in the workflow. Enable npm audit in CI or document and enforce an alternative SCA process.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.npmrc at line 2, Remove the disabling setting by deleting or changing the
.npmrc entry "audit=false" and add a CI step that runs "npm audit" (or an
equivalent SCA tool) so dependency vulnerabilities are scanned during builds;
implement a CI job/step named something like "dependency-scan" that runs npm
audit --json (or invokes Dependabot/dependency-review/SAST) and fails the build
on high/critical findings, and document the chosen SCA process in the repo so
local installs and CI both get scanned.

prefer-offline=true
progress=false
maxsockets=20
fetch-retries=2
fetch-retry-mintimeout=10000
fetch-retry-maxtimeout=60000
Loading