sonarqube-scan-action/action.yml
“Krishna fcd9e5e893 feat: Enhance Sonar Scanner installation with authentication support
- Added a new input parameter `scannerBinariesAuth` to allow passing an authentication token for downloading the Sonar Scanner CLI.
- Implemented a `downloadWithFetch` function to handle downloads with authorization headers.
- Updated the `installSonarScanner` function to use the new download method when an auth token is provided.
- Included the `fs` module in the project dependencies to manage file system operations.
- Updated package.json and package-lock.json to include the new `fs` dependency.
- Modified the `getInputs` function to return the new `scannerBinariesAuth` input.
2025-10-22 14:18:56 +05:30

33 lines
1 KiB
YAML

name: Official SonarQube Scan
# Warning: changing name would change URL in the marketplace
description: >
Scan your code with SonarQube Server and Cloud to detect issues in 30+ languages. (Formerly SonarQube and SonarCloud)
branding:
icon: check
color: green
inputs:
args:
description: Additional arguments to the Sonar Scanner CLI
required: false
default: ""
projectBaseDir:
description: Set the sonar.projectBaseDir analysis property
required: false
default: "."
scannerVersion:
description: Version of the Sonar Scanner CLI to use
required: false
# to be kept in sync with sonar-scanner-version
default: 7.3.0.5189
scannerBinariesUrl:
description: URL to download the Sonar Scanner CLI binaries from
required: false
default: https://binaries.sonarsource.com/Distribution/sonar-scanner-cli
scannerBinariesAuth:
description: Authentication token to download the Sonar Scanner CLI binary from customBinariesUrl
required: false
default: ""
runs:
using: node20
main: dist/index.js