Skip to content

Commit e41a167

Browse files
authored
Fix oss index audit build (#8229)
1 parent 7a0b524 commit e41a167

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.github/workflows/oss-index-audit-daily.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ jobs:
2424
- name: Set up gradle
2525
uses: gradle/actions/setup-gradle@39e147cb9de83bb9910b8ef8bd7fff0ee20fcd6f # v6.0.1
2626

27-
- run: ./gradlew ossIndexAudit
27+
# --no-parallel is needed to avoid OverlappingFileLockException on the shared OSS Index cache
28+
- run: ./gradlew ossIndexAudit --no-configuration-cache --no-parallel --info
2829
id: audit
2930
continue-on-error: true
3031
env:

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,6 @@ bin
3434

3535
# Vim
3636
.swp
37+
38+
# scan-gradle-plugin
39+
oss-index-cyclonedx-bom.json

buildSrc/src/main/kotlin/otel.java-conventions.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ ossIndexAudit {
5252
username = System.getenv("SONATYPE_OSS_INDEX_USER") ?: ""
5353
password = System.getenv("SONATYPE_OSS_INDEX_PASSWORD") ?: ""
5454
outputFormat = org.sonatype.gradle.plugins.scan.ossindex.OutputFormat.JSON_CYCLONE_DX_1_4
55+
isPrintBanner = false
5556
}
5657

5758
val testJavaVersion = gradle.startParameter.projectProperties.get("testJavaVersion")?.let(JavaVersion::toVersion)

0 commit comments

Comments
 (0)