Repository navigation
Releases
v1.7.5
What's Changed
Bug Fixes
-
PREQ-10194: Skip S3 cache save on merge queue refs by @tomverin in #110
Merge-queue refs (
refs/heads/gh-readonly-queue/*) are not writable: the Cognito role deniess3:PutObjecton that prefix, and the save post-step could hang until the job timeout afterAccessDenied.s3-decidenow returnsrestore-onlyfor those refs (unlesslookup-onlyis set), so the combined cache action and its save post-step do not run. Restore can still match the default-branch fallback key. On a total S3 miss, the GitHub cache import andfail-on-cache-missstill run.Workflows already on
SonarSource/gh-action_cache@v1pick this up with thisv1branch update. Callers pinned to a commit SHA stay on the previous behavior until they bump.
Internal
-
BUILD-13187: Pin test workflows to StepSecurity by @tomverin in #103
Test workflows only. No change to the action callers run.
Full Changelog: v1.7.4...v1.7.5
v1.7.4
What's Changed
Improvements
-
BUILD-13160: Pin S3 cache to step-security/runs-on-cache by @tomverin in #101
The S3 probe, restore-only, and combined save steps now call
step-security/runs-on-cachev5.0.8(e61ed9b0206c630e9a6bb5f12ca4cd78ae7bbe93) instead ofruns-on/cachev5.0.7. Inputs and outputs are unchanged.v5.0.8runs the StepSecurity subscription check at the start of the action.Workflows already on
SonarSource/gh-action_cache@v1pick this up automatically with thisv1branch update. Callers pinned to a commit SHA stay onruns-on/cacheuntil they bump.
Full Changelog: v1.7.3...v1.7.4
v1.7.3
What's Changed
Bug Fixes
-
PREQ-8655: Lengthen Cognito credential-setup retries by @tomverin in #98
Org-wide CI bursts (for example
sonar-enterpriseFULLQA) could exhaust the previous 3-attempt / 5s Cognito window withGetCredentialsForIdentityRate exceeded. Defaults are now 5 attempts / 8s base (exponential backoff with 50–100% jitter, about 60–120s). Each Cognito attempt fetches a fresh GitHub OIDC token so the longer window cannot outlive the 5-minute token. Permanent Cognito errors (for exampleValidationException) fail fast.Workflows already on
SonarSource/gh-action_cache@v1pick this up automatically with thisv1branch update.
Improvements
-
BUILD-12217: bump vitest and SCA dependency overrides by @hedinasr in #90
Fixes CVE-2026-47429 via
vitest^3.2.7and tightens npm overrides (undici≥6.28.0,vite≥7.3.6,postcss≥8.5.23,nanoid≥3.3.17).
CI (this repository)
- BUILD-12317: Route Python installs through Repox by @SamirM-BE in #91
- BUILD-12282: Upgrade pre-commit CI to
gh-action_pre-commit@v2by @matemoln in #96
New Contributors
- @hedinasr made their first contribution in #90
- @SamirM-BE made their first contribution in #91
- @matemoln made their first contribution in #96
Full Changelog: v1.7.2...v1.7.3
v1.7.2
What's Changed
Bug Fixes
-
BUILD-11220 Skip duplicate S3 cache save when content restored from default-branch fallback by @lukasz-jarocki-sonarsource in #89
On the S3 path, a branch that restores content byte-identical to the default-branch fallback no longer re-uploads that same content under its own branch-scoped key. Also fixes the "lookup-only + migration fallback" interaction flagged in the PR's own review checklist: the GitHub-cache import and fail-on-cache-miss steps now correctly gate on
mode == 'combined' || mode == 'lookup', so they no longer misfire once content is already served from S3.
Improvements
-
BUILD-11220 Migrate github-ubuntu-latest-s runners to sonar-xs (bundled in #89)
github-ubuntu-latest-sis deprecated (removal Aug 31, 2026). Non-Windows CI jobs in this repo now run on the self-hostedsonar-xsrunner;test-s3-cache-windowsstays ongithub-windows-latest-s, the recommended label for public-repo Windows jobs.
New Contributors
- @lukasz-jarocki-sonarsource made their first contribution in #89
Full Changelog: v1.7.1...v1.7.2
v1.7.1
Improvements
- BUILD-11686 Rebuild cache-metrics dist to emit snake_case JSON keys by @mikolaj-matuszny-ext-sonarsource in #87
Full Changelog: v1.7.0...v1.7.1
v1.7.0
What's Changed
New Features
-
BUILD-11555 Emit cache metrics JSON on all platforms; restrict size measurement to Linux by @julien-carsique-sonarsource in #83
JSON records (
cache_hit,key,backend,restore_key_hit,saved, timestamps) are now written on macOS and Windows too — previously blocked by an overly broad Linux-only guard. Size fields (size_bytes_restored,size_bytes_at_end) and thecache-size-bytesoutput remain Linux-only.
Improvements
-
BUILD-11470 Use snake_case keys in CacheMetricsRecord JSON output by @julien-carsique-sonarsource in #82
⚠️ Breaking change for consumers of/tmp/ci-metrics/cache-${step}.json: all field names renamed from kebab-case to snake_case (cache-hit→cache_hit,size-bytes-restored→size_bytes_restored, etc.). Action inputs/outputs inaction.ymlare unchanged. -
BUILD-10781 Refresh internal Sonar wrapper pins to Node 24-ready versions by @jayadeep-km-sonarsource in #79
Bug Fixes
-
BUILD-11444 Restore decision-file CI-metrics gate; fix opt-out and hook tests by @julien-carsique-sonarsource in #81
Restores the two-tier gate from BUILD-11295: workflow
env.CI_METRICS_ENABLEDwins when set; falls back to the runner pre-job file at${CI_METRICS_DIR:-/tmp/ci-metrics}/enabled. A regression had collapsed this to env-only.
Documentation
- BUILD-11505 docs(README): add Releasing guide and update Node prereq to 24 by @jayadeep-km-sonarsource in #78
Full Changelog: v1.6.0...v1.7.0
v1.6.0
What's Changed
Improvements
- BUILD-11417 Extract symlink keeper into its own sub-action by @julien-carsique-sonarsource in #73
- BUILD-11417 Drop redundant
git add -f .actionsfrom cache-metrics-prep by @julien-carsique-sonarsource in #74 - BUILD-10781 Migrate sub-actions to Node 24 and bump pinned actions to v5 by @jayadeep-km-sonarsource in #75
Full Changelog: v1.5.1...v1.6.0
v1.5.1
What's Changed
Improvements
- BUILD-11295 Gate cache-metrics on layered decision file (workflow env > pre-job file) by @julien-carsique-sonarsource in #71
Layered gate for the pipeline-runtime-metrics emission introduced in v1.5.0. Workflowenv.CI_METRICS_ENABLEDstill wins ('true'/'false'); when unset, the action now honours${CI_METRICS_DIR}/enabled— a presence-only decision file written at job start by the runner pre-job hook (ingithub-runners-infra) based on per-env, per-repo, per-workflow allow/deny lists. No workflow change needed to opt in.
Security & maintenance
- BUILD-11297 Clear 14 high/medium SCA risks via npm overrides by @julien-carsique-sonarsource in #70
Cleared 14 high/medium open dependency risks (1 critical and 1 low cleared as a bonus) by pinning transitive deps vianpm overridesinpackage.json:fast-xml-parser5.3.4→5.8.0,undici5.29.0→6.25.0,vite7.3.1→7.3.3,rollup4.57.1→4.60.4,postcss8.5.6→8.5.15,picomatch4.0.3→4.0.4. No user-facing API change.
Full Changelog: v1.5.0...v1.5.1
v1.5.0
What's Changed
New Features
- BUILD-11294 Add cache-size-bytes output and pipeline runtime metrics JSON by @julien-carsique-sonarsource in #62
Newcache-size-bytesstep output exposes the size of the cached path(s) measured at restore-time (Linux only).
The action now writes a per-invocation JSON record to/tmp/ci-metrics/cache-${step}.jsonfor the BUILD-11068 pipeline-runtime-metricsjob-completedhook to ingest. Opt-in via theCI_METRICS_ENABLED='true'environment variable.
Bug Fixes
- BUILD-11297 Simplify CI_METRICS_ENABLED gate — strict 'true', no bash step by @julien-carsique-sonarsource in #68
Simplified theCI_METRICS_ENABLEDgate to a strict'true'match, eliminating the bash 4${VAR,,}parameter expansion that crashed on macOS runners (bash 3.2). - BUILD-11297 Fix container self-reference and pre-commit git-clean regressions by @julien-carsique-sonarsource in #69
Fixed the cache-metrics local sub-action failing to resolve in container jobs (runs-on: …-sidecar+container:).
Fixed the cache-metrics post step crashing the job when a later action (e.g.gh-action_pre-commit) runs a nestedactions/checkoutbetween the cache action's main and post phases: the workspace.actions/cache-metricssymlink is now recreated bycredential-guard-postin time for the cache-metrics post step.
Full Changelog: v1.4.5...v1.5.0
v1.4.5
Improvements
- PREQ-5729: fix argument list too long in cache cleanup by @mikolaj-matuszny-ext-sonarsource in #61
Full Changelog: v1.4.4...v1.4.5