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
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,16 @@ This action is based upon the OWASP Dependency-Check [tool](https://owasp.org/ww
9
9
10
10
# How does it work?
11
11
12
-
The action receives three parameters: Project name, scanpath and report format, but more parameters can be added as optional.
12
+
The action has three required parameters:
13
+
14
+
-`project`: the project name
15
+
-`path`: the scanpath
16
+
-`format`: the report format
17
+
18
+
Additionally, you can specify:
19
+
20
+
-`out`: the output folder location relative to the github workspace, by default it will be `reports`
21
+
-`args`: any remaining flags and parameters to the binary, check the [arguments page](https://jeremylong.github.io/DependencyCheck/dependency-check-cli/arguments.html) for valid options
13
22
14
23
Example:
15
24
```
@@ -31,7 +40,8 @@ jobs:
31
40
with:
32
41
project: 'test'
33
42
path: '.'
34
-
format: 'HTML'
43
+
format: 'HTML'
44
+
out: 'reports' # this is the default, no need to specify unless you wish to override it
35
45
args: >
36
46
--failOnCVSS 7
37
47
--enableRetired
@@ -42,8 +52,6 @@ jobs:
42
52
path: ${{github.workspace}}/reports
43
53
```
44
54
45
-
*args* allows to pass established flags and parameters to the binary. Check the [arguments page](https://jeremylong.github.io/DependencyCheck/dependency-check-cli/arguments.html) for valid options
46
-
47
55
### Error: JAVA_HOME is not defined correctly
48
56
When used in conjunction with the GitHub Action [setup-java](https://github.com/actions/setup-java) you will see the error `Error: JAVA_HOME is not defined correctly`
0 commit comments