mirror of
https://github.com/foss42/apidash.git
synced 2025-12-09 23:02:21 +08:00
update docs
This commit is contained in:
29
doc/security/COMMANDS.md
Normal file
29
doc/security/COMMANDS.md
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
# Useful Commands
|
||||||
|
|
||||||
|
### Check for outdated dependency vulnerabilities
|
||||||
|
|
||||||
|
```bash
|
||||||
|
dart pub outdated
|
||||||
|
```
|
||||||
|
|
||||||
|
### Run static analysis
|
||||||
|
|
||||||
|
```bash
|
||||||
|
flutter analyze
|
||||||
|
```
|
||||||
|
|
||||||
|
### Check dependencies
|
||||||
|
|
||||||
|
```bash
|
||||||
|
flutter pub deps --style=compact
|
||||||
|
```
|
||||||
|
|
||||||
|
### Generate SBOM with License
|
||||||
|
|
||||||
|
```bash
|
||||||
|
brew install cdxgen
|
||||||
|
|
||||||
|
export FETCH_LICENSE=true
|
||||||
|
|
||||||
|
cdxgen -t dart -o sbom.json
|
||||||
|
```
|
||||||
@@ -1482,16 +1482,3 @@ Stored XSS:
|
|||||||
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
|
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
|
||||||
Score: 5.4 (MEDIUM)
|
Score: 5.4 (MEDIUM)
|
||||||
```
|
```
|
||||||
|
|
||||||
### Useful Commands
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# Check for outdated dependency vulnerabilities
|
|
||||||
dart pub outdated
|
|
||||||
|
|
||||||
# Run static analysis
|
|
||||||
flutter analyze
|
|
||||||
|
|
||||||
# Check dependencies
|
|
||||||
flutter pub deps --style=compact
|
|
||||||
```
|
|
||||||
|
|||||||
Reference in New Issue
Block a user