-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
32 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,25 +3,42 @@ | |
Scans a URL and looks for JavaScript libraries with known vulnerabilities using retire.js. Can also produce a partial SBOM for the site. | ||
|
||
|
||
### Install | ||
## Install with npm | ||
|
||
``` | ||
git clone [email protected]:RetireJS/retire-scanner.git | ||
cd retire-scanner | ||
npm install -g retire-site-scanner | ||
``` | ||
Run: | ||
``` | ||
retire-site-scanner [-v] [--sbom] <url> | ||
``` | ||
|
||
## Run using docker | ||
|
||
``` | ||
docker run --rm ghcr.io/retirejs/retire-site-scanner:latest [-v] [--sbom] <url> | ||
``` | ||
|
||
|
||
## Install from source | ||
|
||
``` | ||
git clone [email protected]:RetireJS/retire-site-scanner.git | ||
cd retire-site-scanner | ||
npm install | ||
``` | ||
|
||
### Direct | ||
### Run directly from source | ||
``` | ||
npm run start -- <url> [-v] [--sbom] | ||
``` | ||
### Docker | ||
### Run using Docker | ||
|
||
**Build container** | ||
|
||
``` | ||
git clone [email protected]:RetireJS/retire-scanner.git | ||
cd retire-scanner | ||
git clone [email protected]:RetireJS/retire-site-scanner.git | ||
cd retire-site-scanner | ||
docker build -t retire-site-scanner . | ||
``` | ||
**Scanning** | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters