# Issue with sonar code coverage (setup using github actions for golang)

**URL:** <https://community.sonarsource.com/t/issue-with-sonar-code-coverage-setup-using-github-actions-for-golang/30772>\
**Category:** SonarQube Server / Community Build\
**Tags:** go\
**Created:** [September 8, 2020, 10:21am UTC](https://community.sonarsource.com/t/issue-with-sonar-code-coverage-setup-using-github-actions-for-golang/30772 "2020-09-08T10:21:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sreekanth9989](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@sreekanth9989](https://community.sonarsource.com/u/sreekanth9989)\
**Post date:** [September 8, 2020, 10:21am UTC](https://community.sonarsource.com/t/issue-with-sonar-code-coverage-setup-using-github-actions-for-golang/30772/1 "2020-09-08T10:21:05Z")

</div>

Im using github action for sonarqube. My project is golang. after build on the sonarqube dashboard code coverage is showing 0.0%. Can you please tell me how to fix the issue.

```auto
steps:
    - uses: actions/checkout@master
    - name: SonarQube Scan
      uses: kitabisa/sonarqube-action@master
      with:
        host: http://IPaddress
        login: ${{ secrets.token }}
        projectBaseDir: ./
        projectKey: myprokey
        projectName: mypro
        sonar.sources: .
       # sonar.exclusions: "**/*_test.go"
        sonar.tests: /xxxx/xxxxx/pubsubgossip_test/gossip_test.go

```

how can i pass argument for the test files which exists in my repo.  
please reply asap

---

<div class="post-metadata">

**Author:** ![Quentin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/quentin/32/74716_2.png) [@Quentin](https://community.sonarsource.com/u/Quentin)\
**Post date:** [September 24, 2020, 10:12am UTC](https://community.sonarsource.com/t/issue-with-sonar-code-coverage-setup-using-github-actions-for-golang/30772/2 "2020-09-24T10:12:38Z")

</div>

Hello @sreekanth9989,

[This guide](https://community.sonarsource.com/t/coverage-test-data-generate-reports-for-apex-c-c-objective-c-go-js-ts-and-python/9687) is probably what you are looking for.

Best,  
Quentin
