mirror of
https://github.com/gradle/actions.git
synced 2026-04-19 18:12:58 +08:00
Use a unique cache entry for wrapper-validation test (#921)
This is necessary to avoid loading a cache entry from a different test, where the allowed wrapper checksums might have been cached, causing the wrapper validation to unexpectedly succeed.
This commit is contained in:
@@ -12,6 +12,7 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
SKIP_DIST: ${{ inputs.skip-dist }}
|
SKIP_DIST: ${{ inputs.skip-dist }}
|
||||||
|
GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX: wrapper-validation- # Avoid loading cache entries from other tests, that may have cached allowed wrapper checksums
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|||||||
@@ -36,5 +36,6 @@ export async function validateWrappers(
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Should not be caching the ALLOWED_GRADLE_WRAPPER_CHECKSUMS as they should only apply to the present run
|
||||||
checksumCache.save(result.valid.map(wrapper => wrapper.checksum))
|
checksumCache.save(result.valid.map(wrapper => wrapper.checksum))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user