Skip to content
Snippets Groups Projects
Commit ba4b83a5 authored by Tobias Petrasch's avatar Tobias Petrasch
Browse files

remove logging of secrets and another unnecessary log

parent 1cf3f74e
No related branches found
No related tags found
1 merge request!1Feature/gitlab data collection
...@@ -19,11 +19,9 @@ class GetRepositoryDetailsTask( ...@@ -19,11 +19,9 @@ class GetRepositoryDetailsTask(
private val gitlabApi: GitLabApi = GitLabApi(gitlabConfiguration.host, gitlabConfiguration.accessToken) private val gitlabApi: GitLabApi = GitLabApi(gitlabConfiguration.host, gitlabConfiguration.accessToken)
override suspend fun execute() { override suspend fun execute() {
logger.info("Gitlab config ${gitlabConfiguration.host} ${gitlabConfiguration.accessToken}")
val repositoryEntity = toolRunService.findRepoByID(repoId); val repositoryEntity = toolRunService.findRepoByID(repoId);
logger.info(repositoryEntity.toString()) logger.info(repositoryEntity.toString())
if (repositoryEntity != null) { if (repositoryEntity != null) {
logger.info("ID: ${repositoryEntity.repoId}")
val project = gitlabApi.projectApi.getProject(repositoryEntity.repoId) val project = gitlabApi.projectApi.getProject(repositoryEntity.repoId)
// Note: We only take commits from the default branch // Note: We only take commits from the default branch
val commits = gitlabApi.commitsApi.getCommits(project.id, project.defaultBranch, ".") val commits = gitlabApi.commitsApi.getCommits(project.id, project.defaultBranch, ".")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.