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
+18-56Lines changed: 18 additions & 56 deletions
Original file line number
Diff line number
Diff line change
@@ -8,71 +8,33 @@ GitHub action to generate a CycloneDX SBOM for Go modules.
8
8
9
9
### `version`
10
10
11
-
**Required** The version of cyclonedx-gomod to use. Can be a version range, in which case the latest version matching the range is chosen.
11
+
**Required**. The version of *cyclonedx-gomod* to use.
12
+
Can be a version range, in which case the latest version matching the range is chosen.
13
+
Minimum allowed version is v1.0.0. Must either be an [existing semantic version](https://github.com/CycloneDX/cyclonedx-gomod/releases)
14
+
(e.g. `v1.0.0`, `1.0.0`) or a [version range](https://github.com/npm/node-semver#ranges).
12
15
13
-
Must either be an [existing semantic version](https://github.com/CycloneDX/cyclonedx-gomod/releases) (e.g. `v0.8.1`, `0.8.1`), [version range](https://github.com/npm/node-semver#ranges) or `latest`.
16
+
### `args`
14
17
15
-
> ⚠ Only versions `>= v0.8.1` are supported. Specifying versions below that will cause the workflow to fail.
16
-
17
-
> Using `latest` is generally not recommended and will produce a warning, as it may fail your workflow
18
-
> unexpectedly due to breaking changes in newer *cyclonedx-gomod* versions.
19
-
> As of v0.3.0, version ranges are supported. Instead of `latest`, consider using `^v0`, `^v0.8` or similar instead.
20
-
21
-
### `include-stdlib`
22
-
23
-
Include Go standard library as component and dependency of the module. Default `false`.
24
-
25
-
### `include-test`
26
-
27
-
Include test dependencies. Default `false`.
28
-
29
-
### `json`
30
-
31
-
Output in JSON format. Default `false`.
32
-
33
-
### `module`
34
-
35
-
Path to Go module. Default `'.'`.
36
-
37
-
### `omit-serial-number`
38
-
39
-
Omit serial number. Default `false`.
40
-
41
-
### `omit-version-prefix`
42
-
43
-
Omit "v" version prefix. Default `false`.
44
-
45
-
### `output`
46
-
47
-
Output path. Default `'-'` (stdout).
48
-
49
-
### `reproducible`
50
-
51
-
Make the SBOM reproducible by omitting dynamic content. Default `false`.
52
-
53
-
### `resolve-licenses`
54
-
55
-
Resolve module licenses. Default `false`.
56
-
57
-
### `type`
58
-
59
-
Type of the main component. Default `'application'`.
18
+
**Optional**. Arguments to pass to *cyclonedx-gomod*.
19
+
Please refer to the [*cyclonedx-gomod* documentation](https://github.com/CycloneDX/cyclonedx-gomod#usage) for usage instructions.
20
+
When not set, *cyclonedx-gomod* will only be downloaded, but not executed.
21
+
It'll be made available via `$PATH` and can be used by later steps of the workflow.
60
22
61
23
## Example usage
62
24
63
25
```yaml
64
-
- name: Generate SBOM JSON
26
+
# Download and invoke cyclonedx-gomod in a single step
0 commit comments