Code review: include SEGMENT_DOWNLOAD_TIMEOUT_MINS and use cachec@v4 instead of @v4.0.2 (soon deprecated)

This commit is contained in:
Antonio Aversa 2024-12-12 11:29:23 +01:00
parent fe5b156c90
commit 258957a6c1

View file

@ -30,7 +30,10 @@ runs:
INPUT_PROJECTBASEDIR: ${{ inputs.projectBaseDir }}
- name: Load Sonar Scanner CLI from cache
id: sonar-scanner-cli
uses: actions/cache@v4.0.2
uses: actions/cache@v4
env:
# The default value is 60mins. Reaching timeout is treated the same as a cache miss.
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1
with:
path: ${{ runner.temp }}/sonar-scanner-cli-${{ inputs.scannerVersion }}-${{ runner.os }}-${{ runner.arch }}
key: sonar-scanner-cli-${{ inputs.scannerVersion }}-${{ runner.os }}-${{ runner.arch }}