Skip to content

Commit

Permalink
adding new stub and sonarqube props
Browse files Browse the repository at this point in the history
  • Loading branch information
brianLoomis committed Feb 22, 2025
1 parent 2d1442b commit 68e1c4d
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 33 deletions.
45 changes: 12 additions & 33 deletions .github/workflows/ci-all-ruby-main-stub.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,22 @@
# stub to call Ruby CI pipeline from main and release branches for
# all application types (standard pipeline steps)
name: Run ci-all-ruby-main from chef/common-github-actions
# stub to call common GitHub Action (GA) as part of Continuous Integration (CI) Pull Request process checks for main branch
# inputs are described in the <org>/common-github-actions/<GA.yml> with same name as this stub

name: ci-main-pull-request-checks

on:
pull_request:
branches: [ main, release/** ]
# types: [opened, synchronize, reopened, closed]
push:
branches:
- main
- 'release/**'
# - master
# - develop
# - 'features/**'
branches: [ main, release/** ]

workflow_dispatch:
# inputs:
# language:
# description: 'Primary language in the repository'
# required: true
# type: choice
# options:
# - GoLang
# - Ruby
# - Rust
# outputfilename:
# description: 'Name of the SCC output file'
# required: false
# type: string
# default: 'scc-output.txt'
# message:
# required: true
# type: string

jobs:
call-ci-ruby-main-pipeline:
uses: chef/common-github-actions/.github/workflows/ci-all-ruby-main.yml@main
with:
call-ci-main-pr-check-pipeline:
uses: chef/common-github-actions/.github/workflows/ci-main-pull-request-checks.yml@main
secrets: inherit
with: # named inputs for the GA
language: 'Ruby'
outputfilename: 'scc-output.txt'
# message: ${{ inputs.message }}
secrets: inherit
visibility: ${{ github.event.repository.visibility }} # optional, defaults to public
skip-trufflehog: false
skip-sonarqube: true
31 changes: 31 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# SonarQube configuration file
# properties defined in https://docs.sonarsource.com/sonarqube-server/latest/analyzing-source-code/analysis-parameters/
# view output of main here https://sonar.progress.com/dashboard?id=chef_license_scout_db7f1a39-acd3-4376-9acf-80c93b9c01e2&codeScope=overall

# Required metadata
sonar.projectKey=sonar.projectKey=chef_chef-powershell-shim_4a03ea9c-5562-4933-8f93-e57f1a48fd87
sonar.projectName=chef/chef-powershell-shim
# sonar.projectVersion=1.0
# sonar.projectDescription=

# Language - https://docs.sonarsource.com/sonarqube-server/latest/analyzing-source-code/languages/overview/ go, ruby, rust
sonar.language=ruby
# sonar.sources=lib <-- for Ruby, match this with the /spec directory for tests & SARIF output directory for test results/rcov
sonar.sources=.
# sonar.exclusions=**/*_test.go, **/*.js, **/*.sql, **/*.yml, **/*.yaml

# Unit tests
# sonar.tests=. spec?
# sonar.test.inclusions=**/*_test.go **/*Test.java
# sonar.go.coverage.reportPaths=., test/coverage/coverage.out
# sonar.externalIssuesReportPaths Comma-delimited list of paths to generic issue reports.
# sonar.sarifReportPaths Comma-delimited list of paths to SARIF issue reports.

# Additional settings
sonar.qualitygate.wait=false
# sonar.qualitygate.timeout=300

# skip C-language processor
sonar.c.file.suffixes=-
sonar.cpp.file.suffixes=-
sonar.objc.file.suffixes=-

0 comments on commit 68e1c4d

Please sign in to comment.