Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run Gradle action without changing build configuration #11

Closed
maoo opened this issue Jul 21, 2022 · 1 comment
Closed

Run Gradle action without changing build configuration #11

maoo opened this issue Jul 21, 2022 · 1 comment

Comments

@maoo
Copy link
Member

maoo commented Jul 21, 2022

As described on jeremylong/DependencyCheck#4044 (comment) , this approach could help running the Gradle scan without changing build.gradle:

  1. Create a file called run-odc.gradle
initscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "org.owasp:dependency-check-gradle:6.5.3"
  }
}
rootProject {
  apply plugin: org.owasp.dependencycheck.gradle.DependencyCheckPlugin
  dependencyCheck {
    failBuildOnCVSS=5
    suppressionFile="./allow-list.xml"
    format='ALL'
  }
}
  1. Run the gradlew command:
./gradlew --init-script run-odc.gradle dependencyCheckAggregate --info
@maoo
Copy link
Member Author

maoo commented Oct 5, 2023

We partially addressed this by using the OWASP DC Action, closing.

@maoo maoo closed this as completed Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant