Skip to content

Commit

Permalink
Merge pull request #14 from fpt-corp/feature/setup_sonar
Browse files Browse the repository at this point in the history
ci: add sonar workflow
  • Loading branch information
ducdm49 authored Sep 30, 2024
2 parents dbee38a + 830390c commit d7578fa
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: SonarQube analysis

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:

permissions:
pull-requests: read

jobs:
Analysis:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Analyze with SonarQube
uses: SonarSource/sonarqube-scan-action@884b79409bbd464b2a59edc326a4b77dc56b2195
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
with:
args:
-Dsonar.projectKey=Terraform-provider

0 comments on commit d7578fa

Please sign in to comment.