Allow for a base image to be defined to avoid rate limiting

This commit is contained in:
GavinMeierSonos 2024-03-07 09:41:25 -06:00
parent 1b9d398800
commit 8ecd48b42f
2 changed files with 7 additions and 1 deletions

View file

@ -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" \
repository="https://github.com/sonarsource/sonarqube-scan-action" \

View file

@ -9,6 +9,8 @@ runs:
image: Dockerfile
entrypoint: "/entrypoint.sh"
post-entrypoint: "/cleanup.sh"
args:
- ${{ inputs.baseImage }}
inputs:
args:
description: Additional arguments to the sonar-scanner
@ -17,3 +19,6 @@ inputs:
description: Set the sonar.projectBaseDir analysis property
required: false
default: .
baseImage:
description: Allow for a different base image to be used from a private registry to avoid rate limiting.
required: false