Skip to content
This repository was archived by the owner on Apr 2, 2026. It is now read-only.

Commit fa753e6

Browse files
committed
fix: add 'repo' input to override GITHUB_REPOSITORY for cross-repo analysis
1 parent 5dd4311 commit fa753e6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

main.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,12 @@ func main() {
251251
}
252252

253253
// Step 2: Derive repo info
254-
ghRepo := os.Getenv("GITHUB_REPOSITORY") // e.g. "owner/repo"
254+
// Allow the workflow to pass the customer repo explicitly via the "repo" input,
255+
// since GITHUB_REPOSITORY cannot be overridden in Docker container actions.
256+
ghRepo := getInput("repo")
257+
if ghRepo == "" {
258+
ghRepo = os.Getenv("GITHUB_REPOSITORY") // e.g. "owner/repo"
259+
}
255260
repoName := ""
256261
repoURL := ""
257262
if ghRepo != "" {

0 commit comments

Comments
 (0)