opensca
opensca-cli 命令行
https://github.com/XmirrorSecurity/OpenSCA-cli/releases
首先下载编译好的包
windows下载opensca-cli_v1.0.10_Darwin_x86_64.tar.gz这个
然后把opensca解压的文件夹设置环境变量
运行命令行
1 | λ opensca-cli |
然后执行
token需要注册登录之后后台获取
https://opensca.xmirror.cn/pages/auth-token
project_path 项目目录
需要等待很长时间才能执行结束
1 | opensca-cli -url https://opensca.xmirror.cn -token ${token} -path ${project_path} -out output.html |
最好生成的output2.html是在opensca-cli解压目录
1 | C:\Users\tea\tools\opensca-cli_v1.0.10_Windows_x86_64 |
opensca idea插件
https://opensca.xmirror.cn/docs/v1/idea.html#%E5%AE%89%E8%A3%85%E6%8F%92%E4%BB%B6
打开IDEA-Settings-Plugins-搜索opensca xcheck
安装成功之后会在打印输出的位置多出来OpenSCA的选项卡
点击左侧的绿色三角就可以执行了,执行需要很久
需要在IDEA-Settings-OpenSca Setting设置URL Token
URL https://opensca.xmirror.cn
Tokentoken需要注册登录之后后台获取
https://opensca.xmirror.cn/pages/auth-token
然后点击测试链接
支持语言
支持语言 | 包管理器 | 解析文件 |
---|---|---|
Java |
Maven |
pom.xml |
Java |
Gradle |
.gradle .gradle.kts |
JavaScript |
Npm |
package-lock.json package.json yarn.lock |
PHP |
Composer |
composer.json composer.lock |
Ruby |
gem |
gemfile.lock |
Golang |
gomod |
go.mod go.sum |
Python |
Pip |
Pipfile Pipfile.lock setup.py requirements.txt requirements.in (后两者的解析需要具备pipenv环境,需要联网。) |
Rust |
cargo |
Cargo.lock |
Erlang |
Rebar |
rebar.lock |