当前位置:网站首页>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),代码扫描会被自动执行,减少人工介入成本。


扫描结果及时反馈

边栏推荐
- Is it safe to open a stock trading account? Is it reliable?
- Dart的类扩展、可选类型扩展
- How to make up the PMP Exam? How much is the make-up exam?
- Lumiprobe lumizol RNA extraction reagent solution
- JS array common methods
- CVPR 2022|极具创意&美感的文字生成方法!支持任意输入
- ROS 2 Humble Hawksbill 之 f1tenth gym
- 职业问诊 | 面试时被问到职业规划该怎么回答?
- Rosdep update using fishros to solve ros1/ros2 problems 2022
- After reading the list of global patent and chip buyers, I understand that high innovation can lead to high profits
猜你喜欢

Alist+raidrive gives the computer a complete 8billion GB hard disk drive

Anti rabbit dylight 488 abbkine universal immunofluorescence (if) toolbox

Lumiprobe non fluorescent alkyne research - dbco NHS ester

Deploy grafana to realize graphical monitoring

Security dilemma of NFT liquidity agreement - Analysis of the hacked event of NFT loan agreement xcarnival

PHP uses stack to solve maze problem

硬件开发笔记(七): 硬件开发基本流程,制作一个USB转RS232的模块(六):创建0603封装并关联原理图元器件

华为云的AI深潜之旅

After reading the list of global patent and chip buyers, I understand that high innovation can lead to high profits

什么是低代码开发?
随机推荐
Lua源码剖析:一. lua变量类型可变特性在C代码中实现。
Study on luminiprobe non fluorescent azide -- 3-azido propanol
docker下载Mysql镜像创建数据库链接时候发生密码错误问题
零基础自学SQL课程 | SQL中的日期函数大全
Use of dynamic panels
If you are a C developer, look at these three explicit programming techniques
职业问诊 | 面试时被问到职业规划该怎么回答?
JS array common methods
Microsoft's exclusive payment function has also been perfectly unlocked
Adding a markdown editor to lavel
Native implementation Net 5.0+ custom log
河狸生存记:90后女博士与AI开发者们
rosdep update 使用小鱼fishros解决ros1/ros2问题 2022
[dynamic programming] p1018 linear DP: maximum product
Pat 1024 palindromic number (25 points) sum of large integers
E-commerce is popular, how to improve the store conversion rate?
科技巨头成立元宇宙标准论坛,走向开放还是建立围城?
External parameter calibration method for 16 line mechanical radar and monocular camera based on solid state lidar
Lua source code analysis: 1 Lua variable type mutability is implemented in C code.
Survival of beaver: post-90s female doctors and AI developers