mirror of
https://github.com/Radarr/Radarr
synced 2026-04-27 10:41:18 +02:00
- SonarCloud: add proper projectKey and organization - Trivy: fix image reference, add schedule comment - Super Linter: upgrade to v6, configure linter selection - Add Dependabot for NuGet, npm, Docker, GitHub Actions
38 lines
955 B
YAML
38 lines
955 B
YAML
# SonarCloud analysis for code quality and security
|
|
#
|
|
# Setup required:
|
|
# 1. Create project at sonarcloud.io using your GitHub account
|
|
# 2. Add SONAR_TOKEN secret to repository (Settings > Secrets > Actions)
|
|
# 3. Update projectKey and organization below
|
|
|
|
name: SonarCloud
|
|
|
|
on:
|
|
push:
|
|
branches: [develop, main]
|
|
pull_request:
|
|
branches: [develop]
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
pull-requests: read
|
|
|
|
jobs:
|
|
analyze:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: SonarCloud Scan
|
|
uses: SonarSource/sonarcloud-github-action@v2
|
|
env:
|
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
with:
|
|
args: >
|
|
-Dsonar.projectKey=cheir-mneme_aletheia
|
|
-Dsonar.organization=cheir-mneme
|
|
-Dsonar.sources=src
|
|
-Dsonar.exclusions=**/node_modules/**,**/bin/**,**/obj/**,**/*.min.js
|