You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,7 @@ Then, set up this Action as a step in your Actions workflow, e.g. for a typical
27
27
* `java_distribution`: The Java distribution to use. Default: `microsoft`
28
28
* `java_version`: The Java version to use. Default: `11`
29
29
* `no_cache`: Do not use cached versions of the Spotbugs and FindSecBugs tools. Default: `false`
30
+
* `path_prefix`: Add this path prefix to the start of file locations. Required: `false`
30
31
31
32
## Full sample workflow
32
33
@@ -40,6 +41,9 @@ A: Several SpotBugs plugins are usable in CI/CD and Actions, but don't output SA
40
41
Q: Why doesn't the Action support setting argument X of SpotBugs?
41
42
A: It's a work-in-progress. Please raise an issue or a PR if you need a feature.
42
43
44
+
Q: Why do the files not resolve in the Code Scanning results?
45
+
A: The paths in the Jar or Class file metadata might not match up with the root of the repository. Try using the input `path_prefix`. If two build targets don't share the same prefix, then try running this Action twice, once per target with a different prefix for each.
0 commit comments