Skip to content

Commit

Permalink
Lift configuration (#21)
Browse files Browse the repository at this point in the history
- Configures repo specific rules of Sonatype Lift
- Refines OSS Index Audit configuration

{patch}
  • Loading branch information
nagyesta authored Jan 9, 2022
1 parent 4348c5d commit 80ae213
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 22 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ on:
paths-ignore:
- 'README.md'
- '**/README.md'
- '.lift/.toml'
- '**/.lift/.toml'
- 'SECURITY.md'
- 'LICENSE'
- '.github/ISSUE_TEMPLATE/**'
Expand All @@ -28,6 +30,8 @@ on:
paths-ignore:
- 'README.md'
- '**/README.md'
- '.lift/.toml'
- '**/.lift/.toml'
- 'SECURITY.md'
- 'LICENSE'
- '.github/ISSUE_TEMPLATE/**'
Expand Down Expand Up @@ -64,4 +68,4 @@ jobs:
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@46110c361b7e9ea1b6f9c6ba2cc941fa7a106cca
- name: Check dependencies with Gradle
run: ./gradlew ossIndexAudit --info
run: ./gradlew ossIndexAudit -PossIndexUsername=${{ secrets.OSS_INDEX_USER }} -PossIndexPassword=${{ secrets.OSS_INDEX_PASSWORD }}
12 changes: 2 additions & 10 deletions .github/workflows/gradle-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
paths-ignore:
- 'README.md'
- '**/README.md'
- '.lift/.toml'
- '**/.lift/.toml'
- 'SECURITY.md'
- 'LICENSE'
- '.github/ISSUE_TEMPLATE/**'
Expand Down Expand Up @@ -46,67 +48,57 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./mission-control/build/reports/jacoco/report.xml
flags: core
fail_ci_if_error: false
- name: Upload coverage to Codecov - Boosters - JUnit4
uses: codecov/codecov-action@11d69070bf0bb19a473235e011c7890707db52de # v2.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./boosters/booster-junit4/build/reports/jacoco/report.xml
flags: junit4
fail_ci_if_error: false
- name: Upload coverage to Codecov - Boosters - Jupiter
uses: codecov/codecov-action@11d69070bf0bb19a473235e011c7890707db52de # v2.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./boosters/booster-junit-jupiter/build/reports/jacoco/report.xml
flags: jupiter
fail_ci_if_error: false
- name: Upload coverage to Codecov - Boosters - TestNG
uses: codecov/codecov-action@11d69070bf0bb19a473235e011c7890707db52de # v2.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./boosters/booster-testng/build/reports/jacoco/report.xml
flags: testng
fail_ci_if_error: false
- name: Upload coverage to Codecov - Boosters - Cucumber JVM
uses: codecov/codecov-action@11d69070bf0bb19a473235e011c7890707db52de # v2.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./boosters/booster-cucumber-jvm/build/reports/jacoco/report.xml
flags: cucumber
fail_ci_if_error: false
- name: Upload coverage to Codecov - Boosters - Testkit
uses: codecov/codecov-action@11d69070bf0bb19a473235e011c7890707db52de # v2.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./boosters/testkit/build/reports/jacoco/report.xml
flags: testkit
fail_ci_if_error: false
- name: Upload coverage to Codecov - Reporting - Flight Evaluation Report
uses: codecov/codecov-action@11d69070bf0bb19a473235e011c7890707db52de # v2.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./mission-report/flight-evaluation-report/build/reports/jacoco/report.xml
flags: flighteval
fail_ci_if_error: false
- name: Upload coverage to Codecov - Strongback - Base
uses: codecov/codecov-action@11d69070bf0bb19a473235e011c7890707db52de # v2.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./strongback/strongback-base/build/reports/jacoco/report.xml
flags: strongback
fail_ci_if_error: false
- name: Upload coverage to Codecov - Strongback - H2 Supplier
uses: codecov/codecov-action@11d69070bf0bb19a473235e011c7890707db52de # v2.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./strongback/strongback-h2-supplier/build/reports/jacoco/report.xml
flags: h2
fail_ci_if_error: false
- name: Upload coverage to Codecov - Strongback - RMI Supplier
uses: codecov/codecov-action@11d69070bf0bb19a473235e011c7890707db52de # v2.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./strongback/strongback-rmi-supplier/build/reports/jacoco/report.xml
flags: rmi
fail_ci_if_error: false
2 changes: 1 addition & 1 deletion .github/workflows/gradle-oss-index-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
with:
java-version: 8
- name: Check dependencies with Gradle
run: ./gradlew ossIndexAudit --info
run: ./gradlew ossIndexAudit -PossIndexUsername=${{ secrets.OSS_INDEX_USER }} -PossIndexPassword=${{ secrets.OSS_INDEX_PASSWORD }}
12 changes: 2 additions & 10 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
paths-ignore:
- 'README.md'
- '**/README.md'
- '.lift/.toml'
- '**/.lift/.toml'
- 'SECURITY.md'
- 'LICENSE'
- '.github/ISSUE_TEMPLATE/**'
Expand Down Expand Up @@ -61,67 +63,57 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./mission-control/build/reports/jacoco/report.xml
flags: core
fail_ci_if_error: false
- name: Upload coverage to Codecov - Boosters - JUnit4
uses: codecov/codecov-action@11d69070bf0bb19a473235e011c7890707db52de # v2.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./boosters/booster-junit4/build/reports/jacoco/report.xml
flags: junit4
fail_ci_if_error: false
- name: Upload coverage to Codecov - Boosters - Jupiter
uses: codecov/codecov-action@11d69070bf0bb19a473235e011c7890707db52de # v2.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./boosters/booster-junit-jupiter/build/reports/jacoco/report.xml
flags: jupiter
fail_ci_if_error: false
- name: Upload coverage to Codecov - Boosters - TestNG
uses: codecov/codecov-action@11d69070bf0bb19a473235e011c7890707db52de # v2.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./boosters/booster-testng/build/reports/jacoco/report.xml
flags: testng
fail_ci_if_error: false
- name: Upload coverage to Codecov - Boosters - Cucumber JVM
uses: codecov/codecov-action@11d69070bf0bb19a473235e011c7890707db52de # v2.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./boosters/booster-cucumber-jvm/build/reports/jacoco/report.xml
flags: cucumber
fail_ci_if_error: false
- name: Upload coverage to Codecov - Boosters - Testkit
uses: codecov/codecov-action@11d69070bf0bb19a473235e011c7890707db52de # v2.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./boosters/testkit/build/reports/jacoco/report.xml
flags: testkit
fail_ci_if_error: false
- name: Upload coverage to Codecov - Reporting - Flight Evaluation Report
uses: codecov/codecov-action@11d69070bf0bb19a473235e011c7890707db52de # v2.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./mission-report/flight-evaluation-report/build/reports/jacoco/report.xml
flags: flighteval
fail_ci_if_error: false
- name: Upload coverage to Codecov - Strongback - Base
uses: codecov/codecov-action@11d69070bf0bb19a473235e011c7890707db52de # v2.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./strongback/strongback-base/build/reports/jacoco/report.xml
flags: strongback
fail_ci_if_error: false
- name: Upload coverage to Codecov - Strongback - H2 Supplier
uses: codecov/codecov-action@11d69070bf0bb19a473235e011c7890707db52de # v2.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./strongback/strongback-h2-supplier/build/reports/jacoco/report.xml
flags: h2
fail_ci_if_error: false
- name: Upload coverage to Codecov - Strongback - RMI Supplier
uses: codecov/codecov-action@11d69070bf0bb19a473235e011c7890707db52de # v2.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./strongback/strongback-rmi-supplier/build/reports/jacoco/report.xml
flags: rmi
fail_ci_if_error: false
23 changes: 23 additions & 0 deletions .lift.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Lift configuration
# Reference https://help.sonatype.com/lift/configuration-reference

# setup = <path to setup script>
# build = ENV= <env> <build option> [target]
build = "./gradlew build -x test"

# importantRules = <exclusive list of issues to report back to user>
# ignoreRules = <list of issues never to report to the user>
# ignoreFiles = <gitignore format string of files to ignore>

## tools = <infer | errorprone | eslint | hlint | findsecbugs >
tools = ["infer", "findsecbugs", "open source vulnerabilities", "bill of materials"]

# disableTools = <list of tools to not run on the project>
disableTools = ["errorprone"]

# customTools = <list of user-provided tools conforming to a tool API>
# allow = <list of users whose pull requests can trigger analysis>
# jdkVersion = <jdk version>

# summaryComments = <true or false (defaults to false)
summaryComments = false
11 changes: 11 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ project.ext {
gitUser = project.hasProperty('githubUser') ? (project.property('githubUser') as String) : ''
ossrhUser = project.hasProperty('ossrhUsername') ? (project.property('ossrhUsername') as String) : ''
ossrhPass = project.hasProperty('ossrhPassword') ? (project.property('ossrhPassword') as String) : ''
ossIndexUser = project.hasProperty('ossIndexUsername') ? (project.property('ossIndexUsername') as String) : ''
ossIndexPass = project.hasProperty('ossIndexPassword') ? (project.property('ossIndexPassword') as String) : ''
repoUrl = 'https://github.com/nagyesta/abort-mission'
licenseName = 'MIT License'
licenseUrl = 'https://raw.githubusercontent.com/nagyesta/abort-mission/main/LICENSE'
Expand Down Expand Up @@ -202,6 +204,15 @@ configure(subprojects.findAll({
tasks.withType(GenerateModuleMetadata) {
enabled = false
}

ossIndexAudit {
username = rootProject.ext.ossIndexUser
password = rootProject.ext.ossIndexPass
printBanner = false
colorEnabled = true
showAll = false
dependencyGraph = true
}
}

repositories {
Expand Down

0 comments on commit 80ae213

Please sign in to comment.