test(ci): provide log path in workflow harness

This commit is contained in:
overtrue
2026-09-06 01:13:07 +08:00
parent 996770cdcd
commit 88615c7644
+1
View File
@@ -67,6 +67,7 @@ class SecurityWorkflowTests(unittest.TestCase):
self.env = {
**os.environ, "GITHUB_STEP_SUMMARY": str(self.directory / "summary.md"),
"GITHUB_ENV": str(self.directory / "github-env"), "RUNNER_TEMP": self.temp.name, "TMPDIR": self.temp.name,
"LOG_FILE": str(self.directory / "suite.log"),
}
for key in ("server_url", "repository", "run_id", "run_attempt", "sha", "event_name"):
self.env[f"GITHUB_{key.upper()}"] = self.context[f"github.{key}"]