mirror of
https://github.com/SonarSource/sonarqube-scan-action.git
synced 2025-12-16 02:56:30 +00:00
Allow for a base image to be defined to avoid rate limiting
This commit is contained in:
parent
1b9d398800
commit
8ecd48b42f
2 changed files with 7 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
FROM sonarsource/sonar-scanner-cli:5.0.1
|
ARG INPUT_BASEIMAGE=sonarsource/sonar-scanner-cli:5.0.1
|
||||||
|
FROM INPUT_BASEIMAGE
|
||||||
|
|
||||||
LABEL version="2.0.1" \
|
LABEL version="2.0.1" \
|
||||||
repository="https://github.com/sonarsource/sonarqube-scan-action" \
|
repository="https://github.com/sonarsource/sonarqube-scan-action" \
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,8 @@ runs:
|
||||||
image: Dockerfile
|
image: Dockerfile
|
||||||
entrypoint: "/entrypoint.sh"
|
entrypoint: "/entrypoint.sh"
|
||||||
post-entrypoint: "/cleanup.sh"
|
post-entrypoint: "/cleanup.sh"
|
||||||
|
args:
|
||||||
|
- ${{ inputs.baseImage }}
|
||||||
inputs:
|
inputs:
|
||||||
args:
|
args:
|
||||||
description: Additional arguments to the sonar-scanner
|
description: Additional arguments to the sonar-scanner
|
||||||
|
|
@ -17,3 +19,6 @@ inputs:
|
||||||
description: Set the sonar.projectBaseDir analysis property
|
description: Set the sonar.projectBaseDir analysis property
|
||||||
required: false
|
required: false
|
||||||
default: .
|
default: .
|
||||||
|
baseImage:
|
||||||
|
description: Allow for a different base image to be used from a private registry to avoid rate limiting.
|
||||||
|
required: false
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue