当前位置:网站首页>Zadig + SonarQube,为开发过程安全保驾
Zadig + SonarQube,为开发过程安全保驾
2022-06-28 21:51:00 【InfoQ】
项目背景
- 源码:koderover/zadig
- 目标:对日常高频变更的pkg目录下代码进行扫描,及时嗅探代码里的「坏味道」
如何使用
系统管理员:集成 SonarQube
- 登录 SonarQube -> 点击右上角账号头像 ->
My Account。

- 切换到
Security页面,在Generate Token中填写 Token 名称后点击右侧的Generate按钮即可。


- 在 Zadig 中依次访问
系统设置->集成管理->Sonar 集成,填写 SonarQube 服务器地址以及 Token 信息后保存。

工程师:配置代码扫描


名称:zadig-scan
扫描工具:SonarQube
扫描环境:sonar:latest
Sonar 地址:上一步中集成的 SonarQube 服务器地址
代码信息:Zadig 代码库
参数配置:参考SonarQube 文档,本例中配置内容如下:
# Sonar 参数
sonar.projectKey=zadig-pkg
sonar.projectName=zadig-pkg
sonar.sources=./pkg
sonar.go.file.suffixes=.go其他工程师:执行并分析结果
执行
查看

Webhook 一触即发
- 配置代码扫描,添加触发器。

- 当满足触发条件的事件发生时(比如 pull request),代码扫描会被自动执行,减少人工介入成本。


扫描结果及时反馈

边栏推荐
- 【电子实验2】简单电子门铃
- 直播预告|SQL也能玩转工业级机器学习?MLOps meetup V3带你一探究竟!
- wrk压力测试工具介绍
- ADB regular use of work notes
- PHP uses stack to solve maze problem
- How to open a safe and reliable securities account in the financial management class of qiniu school?
- Why use the rust language?
- apipost脚本使用讲解一~全局变量
- Architecture design of e-commerce secsha system
- 【HackTheBox】dancing(SMB)
猜你喜欢

Use of axurer9 option group

Axure custom components

GO语言-反射reflect

CORBA Architecture Guide (Common Object Request Broker Architecture)

Un voyage profond d'IA dans Huawei Cloud

城市大脑知识图谱构建及应用研究

Lumiprobe protein labeling research scheme

Progress in visual weakly supervised learning

Safety innovation practice | Haitai Fangyuan was invited to participate in the technical exchange Seminar on "network information innovation and value co creation in the digital age"

AI deep dive of Huawei cloud
随机推荐
Quartz定时任务触发器启动时设置
PAT 1021. Traversal of the deep root (25 points) graph, DFS, calculating the number of connected components
【HackTheBox】dancing(SMB)
给朋友的忠告
flutter通过 GlobalKey 获取界面任意元素坐标尺寸
Is it safe to open a stock trading account? Is it reliable?
apipost脚本使用讲解一~全局变量
Openfire user and group relationship migration
职场人调研报告:裸辞占比最高的居然是中年人
Multinomial distribution (a discrete distribution)
Competition rules for the "network security" event of the secondary vocational group in the skills competition of Guangxi Vocational Colleges in 2022
Is the VIP securities account of qiniu school really safe and regular? How do I say this?
After easycvr creates a new user, the video access page cannot be clicked. Fix the problem
面试官:Redis中字符串的内部实现方式是什么?
go-cryptobin 常用加密解密库
PHP uses stack to solve maze problem
硬件开发笔记(七): 硬件开发基本流程,制作一个USB转RS232的模块(六):创建0603封装并关联原理图元器件
LxC shared USB device
ADB regular use of work notes
Adding a markdown editor to lavel