Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Sonar Scan

on:
pull_request:
branches:
- main
types:
- opened
- synchronize
- reopened
push:
branches:
- main
workflow_dispatch:

permissions:
contents: read
pull-requests: read

jobs:
sonar:
name: Sonar Scan
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
steps:
# actions/checkout@v6
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
with:
fetch-depth: 0

- name: SonarQube Scan
# SonarSource/sonarqube-scan-action@v8.2.0
uses: SonarSource/sonarqube-scan-action@713881670b6b3676cda39549040e2d88c70d582e
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
6 changes: 6 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
sonar.organization=randomcodespace
sonar.projectKey=RandomCodeSpace_lane
sonar.projectName=Lane
sonar.sources=src,bin,.github
sonar.exclusions=target/**,node_modules/**,docs/**,.superpowers/**
sonar.sourceEncoding=UTF-8