Skip to content

feat(ci): add Arbitrum Chain Security Scanner — wolf-pack multi-chain…#195

Open
romanchaa997 wants to merge 1 commit into
safe-improvementsfrom
romanchaa997-patch-610187
Open

feat(ci): add Arbitrum Chain Security Scanner — wolf-pack multi-chain…#195
romanchaa997 wants to merge 1 commit into
safe-improvementsfrom
romanchaa997-patch-610187

Conversation

@romanchaa997
Copy link
Copy Markdown
Owner

@romanchaa997 romanchaa997 commented Apr 19, 2026

… scanning


Summary by cubic

Adds an Arbitrum chain security scanner workflow that runs Slither and Foundry fork tests on a schedule and on demand, uploads SARIF to code scanning, and publishes reports and a step summary.

  • New Features

    • New workflow .github/workflows/arbitrum-scan.yml scheduled weekly (Tue 07:00 UTC) and manual (scan_depth input).
    • Installs slither-analyzer@0.10.4 and Foundry (nightly) via foundry-rs/foundry-toolchain.
    • Runs Slither on the repo (excludes node_modules,test,lib) and uploads SARIF via github/codeql-action/upload-sarif (category slither-arbitrum).
    • Runs forge test against an Arbitrum fork (test/arbitrum/**) and saves JSON results.
    • Publishes a step summary with High/Medium counts and uploads all reports as artifacts (30-day retention).
  • Migration

    • Add repo secret ARBITRUM_RPC_URL (required).
    • Add tests under test/arbitrum/** to enable fork tests (optional).

Written for commit bb3008f. Summary will update on new commits.

… scanning

Signed-off-by: Igor <romanchaa997@gmail.com>
@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
app Error Error Apr 19, 2026 7:51pm

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 19, 2026

Deploy Preview for audityzer failed. Why did it fail? →

Name Link
🔨 Latest commit bb3008f
🔍 Latest deploy log https://app.netlify.com/projects/audityzer/deploys/69e5324fe443ec00081a4522

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 19, 2026

Deploy Preview for audityzer-security-platform failed. Why did it fail? →

Name Link
🔨 Latest commit bb3008f
🔍 Latest deploy log https://app.netlify.com/projects/audityzer-security-platform/deploys/69e5324fe5c997000813507d

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

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

2 issues found across 1 file

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name=".github/workflows/arbitrum-scan.yml">

<violation number="1" location=".github/workflows/arbitrum-scan.yml:8">
P3: `scan_depth` is declared for manual runs but never used, so changing it has no effect.</violation>

<violation number="2" location=".github/workflows/arbitrum-scan.yml:50">
P2: `--filter-paths` is configured with commas instead of regex alternation, so `test`/`lib` may not be excluded from Slither results.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

slither . \
--json reports/arbitrum/slither-report.json \
--sarif reports/arbitrum/slither.sarif \
--filter-paths "node_modules,test,lib" \
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot Apr 19, 2026

Choose a reason for hiding this comment

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

P2: --filter-paths is configured with commas instead of regex alternation, so test/lib may not be excluded from Slither results.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At .github/workflows/arbitrum-scan.yml, line 50:

<comment>`--filter-paths` is configured with commas instead of regex alternation, so `test`/`lib` may not be excluded from Slither results.</comment>

<file context>
@@ -0,0 +1,93 @@
+          slither . \
+            --json reports/arbitrum/slither-report.json \
+            --sarif reports/arbitrum/slither.sarif \
+            --filter-paths "node_modules,test,lib" \
+            --exclude-informational \
+            2>&1 | tee reports/arbitrum/slither-output.txt || true
</file context>
Fix with Cubic

- cron: '0 7 * * 2'
workflow_dispatch:
inputs:
scan_depth:
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot Apr 19, 2026

Choose a reason for hiding this comment

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

P3: scan_depth is declared for manual runs but never used, so changing it has no effect.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At .github/workflows/arbitrum-scan.yml, line 8:

<comment>`scan_depth` is declared for manual runs but never used, so changing it has no effect.</comment>

<file context>
@@ -0,0 +1,93 @@
+    - cron: '0 7 * * 2'
+  workflow_dispatch:
+    inputs:
+      scan_depth:
+        description: 'Scan depth: quick | full'
+        required: false
</file context>
Fix with Cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant