github / github/codeql

Can't get it work with maven project

Offen
#7,157 7 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
question
Vorherrschende Sprache
CodeQL
Sterne
10.1k
Forks
2.1k
Ø Merge
2 T. 15 Std.
Gemergte PRs (30 T.)
141

Beschreibung

### Problems

I'm trying to build codeql with Webgoat. mvn build succeed, but no source code detected

### Steps to reproduct

1. git clone https://github.com/WebGoat/WebGoat.git
2. codeql database create java-database -l=java -c="mvn package -DskipTests=true"

Results

```
Finalizing database at /tmp/WebGoat/java-database.
No source code was seen and extracted to /tmp/WebGoat/java-database.
This can occur if the specified build commands failed to compile or process any code.
- Confirm that there is some source code for the specified language in the project.
- For codebases written in Go, JavaScript, TypeScript, and Python, do not specify
an explicit --command.
- For other languages, the --command must specify a "clean" build which compiles
all the source code files without reusing existing build artefacts.
```

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.