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

Provide OWASP dependency check as profile #989

Merged
merged 1 commit into from
Sep 20, 2024
Merged

Provide OWASP dependency check as profile #989

merged 1 commit into from
Sep 20, 2024

Conversation

uhafner
Copy link
Owner

@uhafner uhafner commented Sep 20, 2024

So modules can check their dependencies by calling mvn verify -Powasp.

The configuration requires that the environment variable NVD_API_KEY contains the API key for the NVD database download.

In CI workflows you need to specify the following snippet to scan for vulnerabilities:

    steps:
      - name: Set up JDK 21
        uses: actions/setup-java@v4
        with:
          distribution: 'temurin'
          java-version: 21
          check-latest: true
          cache: 'maven'
      - name: Set up Maven
        uses: stCarolas/setup-maven@v5
        with:
          maven-version: 3.9.9
      - name: Cache the NVD database
        uses: actions/cache@v3
        with:
          path: ~/.m2/repository/org/owasp/dependency-check-data
          key: dependency-check
      - name: Build with Maven
        env:
          NVD_API_KEY: ${{ secrets.NVD_API_KEY }}
        run: mvn -V --color always -ntp clean verify -Pci -Powasp | tee maven.log

@uhafner uhafner added the feature New features label Sep 20, 2024
@uhafner uhafner merged commit 186a4fc into main Sep 20, 2024
12 checks passed
@uhafner uhafner deleted the owasp branch September 20, 2024 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant