GitHub Actions broke caching on macOS

43 minutes ago 1

Description

Workflow fails with error:

The template is not valid. ... hashFiles('...') failed. Fail to hash files under directory '/Users/runner/work/...'

The same step works fine both on previous version of macos-15 runners and on ubuntu-24.04.

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 22.04
  • Ubuntu 24.04
  • Ubuntu Slim
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • macOS 15
  • macOS 15 Arm64
  • macOS 26 Arm64
  • Windows Server 2019
  • Windows Server 2022
  • Windows Server 2025

Image version and build link

Broken:

Works:

Is it regression?

yes

Expected behavior

hashFiles() calculates hash of files

Actual behavior

Error: The template is not valid. ... hashFiles('...') failed. Fail to hash files under directory '...'

Repro steps

See repro workflow: https://github.com/adoroszlai/ozone/actions/runs/19597747914/workflow

Read Entire Article