Skip to content

Releases

v1.7.5

Choose a tag to compare

@tomverin tomverin released this 10 Nov 08:49
Immutable release. Only release title and notes can be modified.
10fff02

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 denies s3:PutObject on that prefix, and the save post-step could hang until the job timeout after AccessDenied. s3-decide now returns restore-only for those refs (unless lookup-only is 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 and fail-on-cache-miss still run.

    Workflows already on SonarSource/gh-action_cache@v1 pick this up with this v1 branch 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

Choose a tag to compare

@tomverin tomverin released this 22 Oct 13:03
Immutable release. Only release title and notes can be modified.
141f879

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-cache v5.0.8 (e61ed9b0206c630e9a6bb5f12ca4cd78ae7bbe93) instead of runs-on/cache v5.0.7. Inputs and outputs are unchanged. v5.0.8 runs the StepSecurity subscription check at the start of the action.

    Workflows already on SonarSource/gh-action_cache@v1 pick this up automatically with this v1 branch update. Callers pinned to a commit SHA stay on runs-on/cache until they bump.


Full Changelog: v1.7.3...v1.7.4

v1.7.3

Choose a tag to compare

@tomverin tomverin released this 15 Sep 08:34
Immutable release. Only release title and notes can be modified.
0b86c7a

What's Changed

Bug Fixes

  • PREQ-8655: Lengthen Cognito credential-setup retries by @tomverin in #98

    Org-wide CI bursts (for example sonar-enterprise FULLQA) could exhaust the previous 3-attempt / 5s Cognito window with GetCredentialsForIdentity Rate 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 example ValidationException) fail fast.

    Workflows already on SonarSource/gh-action_cache@v1 pick this up automatically with this v1 branch update.

Improvements

  • BUILD-12217: bump vitest and SCA dependency overrides by @hedinasr in #90

    Fixes CVE-2026-47429 via vitest ^3.2.7 and tightens npm overrides (undici ≥6.28.0, vite ≥7.3.6, postcss ≥8.5.23, nanoid ≥3.3.17).

CI (this repository)

New Contributors


Full Changelog: v1.7.2...v1.7.3

v1.7.2

Choose a tag to compare

@julien-carsique-sonarsource julien-carsique-sonarsource released this 06 Jul 15:44
Immutable release. Only release title and notes can be modified.

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-s is deprecated (removal Aug 31, 2026). Non-Windows CI jobs in this repo now run on the self-hosted sonar-xs runner; test-s3-cache-windows stays on github-windows-latest-s, the recommended label for public-repo Windows jobs.

New Contributors


Full Changelog: v1.7.1...v1.7.2

v1.7.1

Choose a tag to compare

@mikolaj-matuszny-ext-sonarsource mikolaj-matuszny-ext-sonarsource released this 24 Jun 12:41
Immutable release. Only release title and notes can be modified.
339d9d7

Improvements

Full Changelog: v1.7.0...v1.7.1

v1.7.0

Choose a tag to compare

@julien-carsique-sonarsource julien-carsique-sonarsource released this 15 Jun 13:20
Immutable release. Only release title and notes can be modified.

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 the cache-size-bytes output 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 in action.yml are 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_ENABLED wins 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


Full Changelog: v1.6.0...v1.7.0

v1.6.0

Choose a tag to compare

@jayadeep-km-sonarsource jayadeep-km-sonarsource released this 01 Jun 09:05
Immutable release. Only release title and notes can be modified.
a7d13cd

What's Changed

Improvements

Full Changelog: v1.5.1...v1.6.0

v1.5.1

Choose a tag to compare

@julien-carsique-sonarsource julien-carsique-sonarsource released this 25 May 10:41
Immutable release. Only release title and notes can be modified.

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. Workflow env.CI_METRICS_ENABLED still 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 (in github-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 via npm overrides in package.json: fast-xml-parser 5.3.4→5.8.0, undici 5.29.0→6.25.0, vite 7.3.1→7.3.3, rollup 4.57.1→4.60.4, postcss 8.5.6→8.5.15, picomatch 4.0.3→4.0.4. No user-facing API change.

Full Changelog: v1.5.0...v1.5.1

v1.5.0

Choose a tag to compare

@julien-carsique-sonarsource julien-carsique-sonarsource released this 20 May 13:01
Immutable release. Only release title and notes can be modified.

What's Changed

New Features

  • BUILD-11294 Add cache-size-bytes output and pipeline runtime metrics JSON by @julien-carsique-sonarsource in #62
    New cache-size-bytes step 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}.json for the BUILD-11068 pipeline-runtime-metrics job-completed hook to ingest. Opt-in via the CI_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 the CI_METRICS_ENABLED gate 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 nested actions/checkout between the cache action's main and post phases: the workspace .actions/cache-metrics symlink is now recreated by credential-guard-post in time for the cache-metrics post step.

Full Changelog: v1.4.5...v1.5.0

v1.4.5

Choose a tag to compare

@mikolaj-matuszny-ext-sonarsource mikolaj-matuszny-ext-sonarsource released this 12 May 07:59
Immutable release. Only release title and notes can be modified.
60d0720

Improvements

Full Changelog: v1.4.4...v1.4.5