add sonar

This commit is contained in:
Luke Tainton 2024-06-17 21:58:49 +01:00
parent 974596452d
commit 07d47300c7
No known key found for this signature in database
2 changed files with 25 additions and 0 deletions

18
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,18 @@
name: CI
on:
pull_request:
types: [opened, synchronize, reopened]
paths-ignore:
- "README.md"
- "LICENSE.md"
- ".gitignore"
- ".github/CODEOWNERS"
- ".github/renovate.json"
- ".github/dependabot.yml"
jobs:
ci:
uses: luketainton/gha-workflows/.github/workflows/ci-docker.yml@main
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

7
sonar-project.properties Normal file
View File

@ -0,0 +1,7 @@
sonar.organization=luketainton
sonar.projectKey=luketainton_docker-dnsmasq
sonar.projectName=docker-dnsmasq
sonar.projectVersion=1.0
sonar.docker.hadolint.reportPaths=hadolint.out
sonar.sources=Dockerfile
sonar.exclusions=,.github/**,.gitignore,CODEOWNERS,CHANGELOG.md,LICENSE.md,README.md,renovate.json