From 7499b6b52f4eb77333ce2cb17b33a96dd965651a Mon Sep 17 00:00:00 2001 From: Louis Bompart Date: Wed, 6 Aug 2025 22:06:27 +0200 Subject: [PATCH] feat: add GitHub Actions environment variable as default passthru Allowing those variables to pass through by default would make using turborepo with GitHub Actions more seamless. For example, NPM relies on `GITHUB_ACTIONS` for automatic provenance detection. (see https://github.com/npm/cli/blob/5d82d0b4a4bd1424031fb68b4df740c1bbe5b172/lib/utils/oidc.js#L11) By obfuscating the variable, it can be pretty confusing for users of both turborepo and npm as to why the provenance generation stopped working (don't ask me how I know). --- crates/turborepo-lib/src/task_hash.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/turborepo-lib/src/task_hash.rs b/crates/turborepo-lib/src/task_hash.rs index fcf82ffd936da..1f5ae392fe762 100644 --- a/crates/turborepo-lib/src/task_hash.rs +++ b/crates/turborepo-lib/src/task_hash.rs @@ -474,6 +474,9 @@ impl<'a> TaskHasher<'a> { "NEXT_*", "USE_OUTPUT_FOR_EDGE_FUNCTIONS", "NOW_BUILDER", + // GitHub Actions - https://docs.github.com/en/actions/reference/workflows-and-actions/variables + "GITHUB_*", + "RUNNER_*", // Command Prompt casing of env variables "APPDATA", "PATH",