Skip to content

Commit 18ccafa

Browse files
authored
Do not capture build logs when properties task is being executed (#12)
1 parent 5b09d9a commit 18ccafa

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

gradle-modules/src/main/kotlin/org/sonarsource/cloudnative/gradle/CommonSettingsPlugin.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ open class CommonSettingsPlugin
9797
value("Branch", System.getenv("CIRRUS_BRANCH"))
9898
value("PR", System.getenv("CIRRUS_PR"))
9999
value("PR Title", System.getenv("CIRRUS_PR_TITLE"))
100+
101+
capture {
102+
// `properties` task can log sensitive information, so we disable uploading of build logs for it
103+
buildLogging = "properties" !in startParameter.taskNames
104+
}
100105
}
101106
}
102107

0 commit comments

Comments
 (0)