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: .github/README.md
+50-17Lines changed: 50 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,11 @@ English|[中文](../README.md)
19
19
20
20
-[Introduction](#introduction)
21
21
-[Detection Ability](#detection-ability)
22
-
-[Download \& Deployment](#download--deployment)
22
+
-[Installation](#installation)
23
+
-[Method 1: Download from Releases](#method-1-download-from-releases)
24
+
-[Method 2: Use install script](#method-2-use-install-script)
25
+
-[Method 3: Use package manager(Homebrew)](#method-3-use-package-managerhomebrew)
26
+
-[Method 4: Build from source](#method-4-build-from-source)
23
27
-[Use OpenSCA](#use-opensca)
24
28
-[Parameters](#parameters)
25
29
-[Report Formats](#report-formats)
@@ -64,28 +68,57 @@ OpenSCA is now capable of parsing configuration files in the listed programming
64
68
|`Erlang`|`Rebar`|`rebar.lock`|
65
69
|`Python`|`Pip`|`Pipfile``Pipfile.lock``setup.py``requirements.txt``requirements.in`(For the latter two, pipenv environment & internet connection are needed) |
66
70
67
-
## Download & Deployment
71
+
## Installation
72
+
73
+
OpenSCA-cli is available for Windows, Linux and MacOS. The installation method is as follows:
74
+
75
+
### Method 1: Download from Releases
68
76
69
77
1. Download the appropriate executable file according to your system architecture from [releases](https://github.com/XmirrorSecurity/OpenSCA-cli/releases).
78
+
2. Unzip the downloaded file and run `opensca-cli` directly.
79
+
80
+
### Method 2: Use install script
81
+
82
+
- For Mac/Linux Users
83
+
```shell
84
+
curl -sSL https://raw.githubusercontent.com/XmirrorSecurity/OpenSCA-cli/master/scripts/install.sh | sh
85
+
86
+
# Try this when internet connection fails
87
+
curl -sSL https://gitee.com/XmirrorSecurity/OpenSCA-cli/raw/master/scripts/install.sh | sh -s -- gitee
2. Or download the source code and compile (`go 1.18` and above is needed)
97
+
### Method 3: Use package manager(Homebrew)
98
+
```shell
99
+
brew install opensca-cli
100
+
```
101
+
102
+
### Method 4: Build from source
72
103
73
-
```shell
74
-
// github linux/mac
75
-
git clone https://github.com/XmirrorSecurity/OpenSCA-cli.git opensca &&cd opensca && go build
76
-
// gitee linux/mac
77
-
git clone https://gitee.com/XmirrorSecurity/OpenSCA-cli.git opensca &&cd opensca && go build
78
-
// github windows
79
-
git clone https://github.com/XmirrorSecurity/OpenSCA-cli.git opensca ;cd opensca ; go build
80
-
// gitee windows
81
-
git clone https://gitee.com/XmirrorSecurity/OpenSCA-cli.git opensca ;cd opensca ; go build
82
-
```
104
+
Clone the source code and compile (`go 1.18` and above is needed)
105
+
106
+
```shell
107
+
# github linux/mac
108
+
git clone https://github.com/XmirrorSecurity/OpenSCA-cli.git opensca &&cd opensca && go build
109
+
# gitee linux/mac
110
+
git clone https://gitee.com/XmirrorSecurity/OpenSCA-cli.git opensca &&cd opensca && go build
111
+
# github windows
112
+
git clone https://github.com/XmirrorSecurity/OpenSCA-cli.git opensca ;cd opensca ; go build
113
+
# gitee windows
114
+
git clone https://gitee.com/XmirrorSecurity/OpenSCA-cli.git opensca ;cd opensca ; go build
115
+
```
83
116
84
-
The default option is to generate the program of the current system architecture. If you want to try it for other system architectures, you can set the following environment variables before compiling.
117
+
The default option is to generate the program of the current system architecture. If you want to try it for other system architectures, you can set the following environment variables before compiling.
85
118
86
-
- Disable `CGO_ENABLED``CGO_ENABLED=0`
87
-
- Set the operating system `GOOS=${OS} \\ darwin,liunx,windows`
88
-
- Set the architecture `GOARCH=${arch} \\ amd64,arm64`
119
+
- Disable `CGO_ENABLED``CGO_ENABLED=0`
120
+
- Set the operating system `GOOS=${OS}\\ darwin,liunx,windows`
121
+
- Set the architecture `GOARCH=${arch}\\ amd64,arm64`
0 commit comments