File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/kotlin/net/leanix/githubagent/services Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import net.leanix.githubagent.dto.OrganizationDto
11
11
import net.leanix.githubagent.dto.RepositoryDto
12
12
import net.leanix.githubagent.dto.Trigger
13
13
import net.leanix.githubagent.exceptions.JwtTokenNotFound
14
+ import net.leanix.githubagent.shared.ManifestFileName
14
15
import org.slf4j.LoggerFactory
15
16
import org.springframework.stereotype.Service
16
17
import java.util.UUID
@@ -130,7 +131,7 @@ class GitHubScanningService(
130
131
gitHubClient.searchManifestFiles(
131
132
" Bearer $installationToken " ,
132
133
" " +
133
- " repo:${installation.account.login} /$repositoryName filename:leanix.yaml "
134
+ " repo:${installation.account.login} /$repositoryName filename:${ ManifestFileName . YAML .fileName} "
134
135
)
135
136
}
136
137
private fun fetchManifestContents (
@@ -147,7 +148,7 @@ class GitHubScanningService(
147
148
token = installationToken
148
149
)
149
150
ManifestFileDTO (
150
- path = manifestFile.path.replace(" /leanix.yaml " , " " ),
151
+ path = manifestFile.path.replace(" /${ ManifestFileName . YAML .fileName} " , " " ),
151
152
content = content
152
153
)
153
154
}
You can’t perform that action at this time.
0 commit comments