Skip to content

Commit

Permalink
Add sonarqube integration (#2771)
Browse files Browse the repository at this point in the history
  • Loading branch information
SorsOps authored May 18, 2024
1 parent 469dfd0 commit 85420dd
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
30 changes: 29 additions & 1 deletion .github/workflows/techdocs.yml → .github/workflows/merge.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Techdocs
name: Merge

on:
push:
Expand All @@ -12,6 +12,34 @@ permissions:
contents: write

jobs:
analysis:
name: Analyze
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Import Secrets
id: secrets
uses: hashicorp/vault-action@v2
with:
url: ${{ vars.VAULT_URL }}
role: sonarqube
method: jwt
namespace: admin
secrets: |
secret/data/cicd/sonarqube/global SONAR_TOKEN |SONAR_TOKEN ;
secret/data/cicd/sonarqube/global SONAR_HOST_URL | SONAR_HOST_URL;
- uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ steps.secrets.outputs.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ steps.secrets.outputs.SONAR_HOST_URL }}


techdocs:
name: Techdocs
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sonar.projectKey=tokens-studio_figma-plugin_0900c296-9153-4298-8372-5e3be33e480e

0 comments on commit 85420dd

Please sign in to comment.