Conversation
…tion 1. refactor: start monorepo setup
2. Monorepo codeql package
* add language detector action * lint add semgrep action * update jest
* add semgrep action * update jest * rebase on v2, codeowner and semgrep CI * move sembrep test * added security workflow, lint * repoint to main * gaa update semgrep rules * fix repo name * lint semgrep rules * fix actionlint issues * fix changelog lint * move changelog entries under unreleased --------- Co-authored-by: Nicholas Ellul <15018469+NicholasEllul@users.noreply.github.com>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
All alerts resolved. Learn more about Socket for GitHub. This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. Ignoring alerts on:
|
Co-authored-by: Nicholas Ellul <15018469+NicholasEllul@users.noreply.github.com>
Co-authored-by: Nicholas Ellul <15018469+NicholasEllul@users.noreply.github.com>
Co-authored-by: Nicholas Ellul <15018469+NicholasEllul@users.noreply.github.com>
Co-authored-by: Nicholas Ellul <15018469+NicholasEllul@users.noreply.github.com>
|
@SocketSecurity ignore npm/babel-plugin-istanbul@7.0.1 @SocketSecurity ignore npm/@babel/plugin-syntax-import-meta@7.10.4 |
|
@SocketSecurity ignore npm/agent-base@7.1.3 |
What
Consolidated related actions under single repository (https://github.com/MetaMask/semgrep-action, https://github.com/MetaMask/codeql-action)
Added automatic language detection and support, using Github API. Most languages will work out of the box, but some (eg Java will require additional configuration to add build command), additionally consumers are able to ignore select language.
Why
Note
Consolidates security scanning into a monorepo with a reusable workflow, automatic language detection, and dedicated CodeQL and Semgrep actions running per detected language.
/.github/workflows/security-scan.ymlorchestrates scans, auto-detects languages, builds a matrix, runs CodeQL per language, and Semgrep once, then posts results/notifications./.github/workflows/test-semgrep.ymlfor validating and testing Semgrep rules./.github/workflows/security-code-scanner.ymland rootaction.yaml.packages/language-detectorfetches repo languages via GitHub API, maps to scanner languages, merges workflow and repo configs, and outputs a scan matrix (with ignore support).packages/codeql-actionwith repo-config loader, input validation/sanitization, EJS-generatedcodeqlconfig, optional build setup (e.g., Java), and SARIF upload.repo-configs/*), custom query suites, and outputs build parameters.packages/semgrep-actionto run rules and upload SARIF; adds sample rules (e.g.,npxusage) and tests/util scripts.README.mdand package READMEs; changelog updated..gitignore,.prettierignore,.nvmrc, and Yarn config.package.jsonconverted to workspaces with new scripts and deps.Written by Cursor Bugbot for commit 93d3c8d. This will update automatically on new commits. Configure here.