diff --git a/src/config-utils.ts b/src/config-utils.ts index b85d2c0fe..7f0c2bc90 100644 --- a/src/config-utils.ts +++ b/src/config-utils.ts @@ -1002,11 +1002,11 @@ async function isTrapCachingEnabled( features: FeatureEnablement, overlayDatabaseMode: OverlayDatabaseMode, ): Promise { - // If the workflow specified something always respect that + // If the workflow specified something, always respect that. const trapCaching = getOptionalInput("trap-caching"); if (trapCaching !== undefined) return trapCaching === "true"; - // On self-hosted runners which may have slow network access, disable TRAP caching by default + // On self-hosted runners which may have slow network access, disable TRAP caching by default. if (!isHostedRunner()) return false; // If overlay analysis is enabled, then disable TRAP caching since overlay analysis supersedes it. @@ -1018,7 +1018,7 @@ async function isTrapCachingEnabled( return false; } - // Otherwise, enable TRAP caching + // Otherwise, enable TRAP caching. return true; } diff --git a/src/feature-flags.ts b/src/feature-flags.ts index 20fb05b45..d314f4f11 100644 --- a/src/feature-flags.ts +++ b/src/feature-flags.ts @@ -80,7 +80,7 @@ export enum Feature { OverlayAnalysisSkipResourceChecks = "overlay_analysis_skip_resource_checks", /** Controls whether the Actions cache is checked for overlay build outcomes. */ OverlayAnalysisStatusCheck = "overlay_analysis_status_check", - /** Controls whether overlay build failures on are stored in the Actions cache. */ + /** Controls whether overlay build failures on the default branch are stored in the Actions cache. */ OverlayAnalysisStatusSave = "overlay_analysis_status_save", PythonDefaultIsToNotExtractStdlib = "python_default_is_to_not_extract_stdlib", QaTelemetryEnabled = "qa_telemetry_enabled",