20
.github/workflows/test.yml
vendored
20
.github/workflows/test.yml
vendored
@@ -1,6 +1,7 @@
|
|||||||
name: Test
|
name: Test
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
types: [opened, synchronize, reopened]
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
permissions:
|
permissions:
|
||||||
@@ -26,11 +27,16 @@ jobs:
|
|||||||
- name: Test
|
- name: Test
|
||||||
run: go test -short -coverprofile=coverage.out
|
run: go test -short -coverprofile=coverage.out
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
- uses: sonarsource/sonarqube-scan-action@master
|
- name: SonarCloud Scan
|
||||||
|
uses: SonarSource/sonarcloud-github-action@master
|
||||||
env:
|
env:
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
|
||||||
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_CLOUD }}
|
||||||
- uses: sonarsource/sonarqube-quality-gate-action@master
|
# - uses: sonarsource/sonarqube-scan-action@master
|
||||||
timeout-minutes: 5
|
# env:
|
||||||
env:
|
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
# SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
||||||
|
# - uses: sonarsource/sonarqube-quality-gate-action@master
|
||||||
|
# timeout-minutes: 5
|
||||||
|
# env:
|
||||||
|
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
|
|||||||
@@ -1,5 +1,16 @@
|
|||||||
{
|
{
|
||||||
"extends": [
|
"extends": ["config:base"],
|
||||||
"config:base"
|
"platformCommit": true,
|
||||||
]
|
"dependencyDashboardAutoclose": true,
|
||||||
|
"assignAutomerge": true,
|
||||||
|
"assigneesFromCodeOwners": true,
|
||||||
|
"rebaseWhen": "behind-base-branch",
|
||||||
|
"rollbackPrs": true,
|
||||||
|
"labels": ["dependencies"],
|
||||||
|
"vulnerabilityAlerts": {
|
||||||
|
"enabled": true,
|
||||||
|
"labels": ["security"],
|
||||||
|
"commitMessagePrefix": "[SECURITY] ",
|
||||||
|
"prCreation": "immediate"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
sonar.projectKey=luketainton_iPilot_AYKYmHI397IDIMpeRtF7
|
sonar.organization=luketainton
|
||||||
|
sonar.projectKey=luketainton_iPilot
|
||||||
|
# sonar.projectKey=luketainton_iPilot_AYKYmHI397IDIMpeRtF7
|
||||||
|
sonar.projectName=iPilot
|
||||||
|
sonar.projectVersion=1.3.9
|
||||||
sonar.sources=.
|
sonar.sources=.
|
||||||
sonar.exclusions=,.github/**,.gitignore,CODEOWNERS,CHANGELOG.md,LICENSE.md,README.md,renovate.json,**/*_test.go
|
sonar.exclusions=,.github/**,.gitignore,CODEOWNERS,CHANGELOG.md,LICENSE.md,README.md,renovate.json,**/*_test.go
|
||||||
sonar.tests=.
|
sonar.tests=.
|
||||||
|
|||||||
Reference in New Issue
Block a user