# 通过 Gitea Actions 集成 Sonarqube不成功

**URL:** <https://forum.gitea.com/t/gitea-actions-sonarqube/8599>\
**Category:** 中文求助(Chinese Only)\
**Created:** [February 20, 2024, 9:13am UTC](https://forum.gitea.com/t/gitea-actions-sonarqube/8599 "2024-02-20T09:13:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![georgewei](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/georgewei/32/4402_2.png) [@georgewei](https://forum.gitea.com/u/georgewei)\
**Post date:** [February 20, 2024, 9:13am UTC](https://forum.gitea.com/t/gitea-actions-sonarqube/8599/1 "2024-02-20T09:13:58Z")

</div>

我按照这篇文章（[https://mp.weixin.qq.com/s/1h9wki9F\_AV\_-V8IQ3kOgw）尝试通过](https://mp.weixin.qq.com/s/1h9wki9F_AV_-V8IQ3kOgw%EF%BC%89%E5%B0%9D%E8%AF%95%E9%80%9A%E8%BF%87) Gitea Actions 集成 Sonarqube，安装好了SonarQube，Docker，在gitea里启用了Actions，然后写了一个workflow，保存为.gitea/workflows/build.yaml，内容如下：

```auto
on:
  push:
    branches: [master, dev]
  pull_request:
    types: [opened, synchronize, reopened]

name: SonarQube Scan
jobs:
  sonarqube:
    name: SonarQube Trigger
    runs-on: ubuntu-latest
    steps:
      - name: Checking out
        uses: https://github.com/actions/checkout@v4
        with:
          # Disabling shallow clone is recommended for improving relevancy of reporting
          fetch-depth: 0
      - name: SonarQube Scan
        uses: https://github.com/kitabisa/sonarqube-action@v1.2.1
        with:
          host: "http://100.100.1.10:9000"
          login: "squ_fa85585594414dc98b46ee3dd73db30e9b2e83e6"

```

这个Action执行的时候，在gitea的Actions页面上看到报错了

 ![image](https://us1.discourse-cdn.com/flex020/uploads/gitea/original/2X/0/032afefed4724367b8b4592bab3f52b2f3834589.png)  
因为gitea没有输出日志，act\_runner也没有更详细的信息。怎么知道是缺少哪个plugin呢？应该怎么解决？
