mirror of
https://github.com/gradle/actions.git
synced 2026-08-23 14:22:51 +00:00
Support repo-registration as a second enablement path for project-entry caching
Configuration-cache store/restore is now enabled when EITHER a valid Develocity JWT OR per-repo registration (a GitHub App installation that accepted the T&C) is present. The gate itself lives in the vendored gradle-actions-caching library (refreshed to 0.9.1); this repo wires up the reporting and notice. - ProjectCacheStatus: 'trial-not-licensed' -> 'not-registered'. - caching-report: render the 'not-registered' line with a /register link, and add renderProjectCacheNotice() for a prominent core.notice. - setup-gradle: emit the notice from complete() only when withheld via the registration path; quiet when enabled by either path. - Refresh vendored gradle-actions-caching to 0.9.1. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
b128da9bf0
commit
bc54cf57d1
+3
-3
@@ -56,12 +56,12 @@ export declare type CacheStatus = 'enabled' | 'read-only' | 'write-only' | 'disa
|
||||
|
||||
/**
|
||||
* Status of project-entry caching (build-logic artifacts + configuration-cache data) for a run.
|
||||
* The first three are set on restore (always ungated); the rest are set on save and reflect the
|
||||
* two-tier gate (opt-in + Develocity trial, then encryption key + Gradle version). Still beta.
|
||||
* Set as the gate is evaluated: opt-in, then trial expiry, then entitlement (Develocity trial
|
||||
* license OR repo registration), then encryption key. Still beta.
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
declare type ProjectCacheStatus = 'not-enabled' | 'trial-expired' | 'trial-not-licensed' | 'no-encryption-key' | 'enabled';
|
||||
declare type ProjectCacheStatus = 'not-enabled' | 'trial-expired' | 'not-registered' | 'no-encryption-key' | 'enabled';
|
||||
|
||||
/** @public */
|
||||
export declare function restore(gradleUserHome: string, cacheOptions: CacheOptions): Promise<void>;
|
||||
|
||||
Reference in New Issue
Block a user