Skip to content
This repository was archived by the owner on Nov 24, 2023. It is now read-only.

Commit 51d0ec3

Browse files
pdemonacomrodm
authored andcommitted
fix: default org only token url
The default path for the API to retrieve the runner token was being calculated incorrectly including 'repos' instead of 'orgs'
1 parent 9c78ab9 commit 51d0ec3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifests/instance.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
$url = "${github_domain}/${org_name}/${repo_name}"
7373
} else {
7474
$token_url = $github_api ? {
75-
'https://api.github.com' => "${github_api}/repos/${org_name}/actions/runners/registration-token",
75+
'https://api.github.com' => "${github_api}/orgs/${org_name}/actions/runners/registration-token",
7676
default => "${github_api}/orgs/${org_name}/actions/runners/registration-token",
7777
}
7878
$url = "${github_domain}/${org_name}"

0 commit comments

Comments
 (0)