Skip to content

Commit 26f57e3

Browse files
committed
fix: use non-empty dummy token for local execution
Empty string fails the checkout action's validation. Use 'local-magnolia-token' as a dummy value for local testing. This satisfies the required input check while indicating it's a local run.
1 parent b6e73ab commit 26f57e3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/actions.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,9 @@ fn setup_github_env(inputs: Option<&std::collections::HashMap<String, serde_yaml
359359
}
360360

361361
// Provide a default token if not supplied (for actions that require it)
362+
// Use a dummy token for local execution - many actions like checkout require this
362363
if !env.contains_key("INPUT_TOKEN") {
363-
env.insert("INPUT_TOKEN".to_string(), "".to_string());
364+
env.insert("INPUT_TOKEN".to_string(), "local-magnolia-token".to_string());
364365
}
365366

366367
env

0 commit comments

Comments
 (0)