Skip to content

ci: add SonarQube analysis workflow#1

Merged
TimKenobi merged 1 commit into
mainfrom
add-sonarqube-workflow
May 6, 2026
Merged

ci: add SonarQube analysis workflow#1
TimKenobi merged 1 commit into
mainfrom
add-sonarqube-workflow

Conversation

@TimKenobi
Copy link
Copy Markdown
Owner

Adds .github/workflows/sonarqube-analysis.yml so this repo gets analyzed by self-hosted SonarQube on every push and PR.

Project key will be TimKenobi_ScriptWeaver (matches existing naming convention).

Repo secrets SONAR_TOKEN and SONAR_HOST_URL have been set.

Copilot AI review requested due to automatic review settings May 6, 2026 23:03
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 6, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot

See analysis details on SonarQube Cloud

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds a GitHub Actions workflow to run SonarQube analysis on pushes and pull requests targeting the main/master branches.

Changes:

  • Introduces .github/workflows/sonarqube-analysis.yml to run SonarQube scanning via sonarsource/sonarqube-scan-action.
  • Configures full git history checkout (fetch-depth: 0) to improve Sonar analysis accuracy.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +17 to +30
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@v2
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
with:
args: >
-Dsonar.projectKey=TimKenobi_${{ github.event.repository.name }}
-Dsonar.projectName=${{ github.event.repository.name }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
with:
args: >
-Dsonar.projectKey=TimKenobi_${{ github.event.repository.name }}
Comment on lines +18 to +23
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@v2
Comment on lines +18 to +23
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@v2
@TimKenobi TimKenobi merged commit ed193fb into main May 6, 2026
2 of 4 checks passed
@TimKenobi TimKenobi deleted the add-sonarqube-workflow branch May 6, 2026 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants