Skip to content

Releases: SonarSource/gh-action_cache

v1.3.0

19 Mar 08:12
7b57f01

Choose a tag to compare

New Features
Added new composite action for self-service S3 cache cleanup: SonarSource/gh-action_cache/cleanup

It supports:

  • List mode — discover all cache entries for your repo without deleting anything
  • Delete by branch — remove all cache entries for a specific branch (e.g., feature/my-branch)
  • Delete by key — remove entries matching a cache key prefix across all branches or specific branch (e.g., sccache-Linux)
  • Dry-run — preview what would be deleted before committing
  • GitHub Actions job summary — collapsible table of matched/deleted objects in the workflow summary

Setup
Add a workflow_dispatch workflow to your repository and trigger it from the default branch.
See Cache Cleanup in the README for full setup instructions and usage examples.

NOTE: Due to security constrains you cannot run cache cleanup from non-default branch!

v1.2.3

11 Mar 10:20

Choose a tag to compare

What's Changed

New Features

Full Changelog: v1.2.2...v1.2.3

v1.2.2

17 Feb 13:45
54a4898

Choose a tag to compare

What's Changed

Full Changelog: v1.2.1...v1.2.2

v1.2.1

16 Feb 08:52
73f72af

Choose a tag to compare

What's Changed

Full Changelog: v1.2.0...v1.2.1

v1.2.0

13 Feb 15:24
6dd9c34

Choose a tag to compare

What's Changed

Full Changelog: v1.1.4...v1.2.0

v1.1.4

03 Feb 14:55

Choose a tag to compare

BREAKING CHANGE

This release introduces a bug in unknown race conditions: see BUILD-10339

Could not load credentials from any providers

Prefer using v1.1.3 unless v1.1.4 is not failing in your case and resolving the save post step.

What's Changed

Full Changelog: v1.1.3...v1.1.4

v1.1.3

05 Jan 08:07

Choose a tag to compare

What's Changed

Full Changelog: v1.1.2...v1.1.3

v1.1.2

17 Dec 09:00

Choose a tag to compare

What's Changed

This release is breaking the Post Run cache save, in order to preserve the AWS environment.

Full Changelog: v1.1.1...v1.1.2

v1.1.1

12 Dec 18:10

Choose a tag to compare

What's Changed

Bug Fixes

⚠️ The action now stores AWS credentials with https://github.com/aws-actions/configure-aws-credentials/ which . This can conflict with other usage.
Workaround: backup the credentials after calling the action, set the other credentials, do some work..., restore the gh-action_cache credentials as the last step

    - uses: SonarSource/gh-action_cache@v1
    - name: Backup Credentials
      shell: bash
      run: |
        {
          echo "BAK_AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID"
          echo "BAK_AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY"
          echo "BAK_AWS_SESSION_TOKEN=$AWS_SESSION_TOKEN"
        } >> "$GITHUB_ENV"
    - uses: aws-actions/configure-aws-credentials@... # custom usage
      ...
    - name: Restore Credentials # restore gh-action_cache in the last step
      shell: bash
      run: |
        {
          echo "AWS_ACCESS_KEY_ID=$BAK_AWS_ACCESS_KEY_ID"
          echo "AWS_SECRET_ACCESS_KEY=$BAK_AWS_SECRET_ACCESS_KEY"
          echo "AWS_SESSION_TOKEN=$BAK_AWS_SESSION_TOKEN"    
        } >> "$GITHUB_ENV"

Full Changelog: v1.1.0...v1.1.1

v1.1.0

12 Dec 14:41

Choose a tag to compare

What's Changed

New Features

Improvements

Full Changelog: v1.0.5...v1.1.0