Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: SonarSource/gh-action_cache
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.3.1
Choose a base ref
...
head repository: SonarSource/gh-action_cache
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.4.0
Choose a head ref
  • 1 commit
  • 4 files changed
  • 2 contributors

Commits on Mar 24, 2026

  1. BUILD-10724: Import GitHub cache to S3 when no S3 cache exists (migra…

    …tion mode)
    
    When the S3 backend is used and the S3 cache misses, automatically attempt to restore the cache from GitHub using the original unprefixed key.
    The S3 post-job step will then save the restored content to S3, pre-provisioning it for subsequent runs.
    
    The feature is enabled by default. Resolution order to disable it:
      1. Action input `import-github-cache: 'false'`
      2. Environment variable `CACHE_IMPORT_GITHUB=false`
      3. Default: true
    
    `fail-on-cache-miss` and `lookup-only` are propagated to the GitHub fallback step.
    When `fail-on-cache-miss` is set and import mode is active, failure is deferred until both S3 and GitHub have been tried.
    
    Also adds `.github/workflows/check-cache-migration.yml`: a manually-triggered workflow that compares GitHub cache entries to S3 objects across
    target branches (main, master, branch-*, dogfood-on-*, feature/long/*), ignoring transient keys (build-number-*, mise-*). When 100% of entries
    are found in S3, it automatically sets the CACHE_IMPORT_GITHUB=false repository variable to disable the import fallback (this requires the
    `CACHE_IMPORT_GITHUB` environment variable to be set from the repository variable via `${{ vars.CACHE_IMPORT_GITHUB }}`).
    
    Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
    julien-carsique-sonarsource and claude committed Mar 24, 2026
    Configuration menu
    Copy the full SHA
    6a7c382 View commit details
    Browse the repository at this point in the history
Loading