https://github.com/mrtc0/debugdefsec
defsec parser debugger
https://github.com/mrtc0/debugdefsec
Last synced: about 1 year ago
JSON representation
defsec parser debugger
- Host: GitHub
- URL: https://github.com/mrtc0/debugdefsec
- Owner: mrtc0
- Created: 2022-04-02T13:02:04.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-11T00:55:33.000Z (about 4 years ago)
- Last Synced: 2025-04-01T22:05:36.042Z (about 1 year ago)
- Language: Go
- Size: 70.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# debugdefsec
Dump the result of parsing by [defsec](https://github.com/aquasecurity/defsec).
# Install
```shell
$ go install github.com/mrtc0/debugdefsec@latest
```
# Usage
```shell
$ debugdefsec dockerfile testdata/Dockerfile | jq
{
"Stages": {
"hub.example.com/ubuntu:20.04": [
{
"Cmd": "from",
"SubCmd": "",
"Flags": [],
"Value": [
"hub.example.com/ubuntu:20.04"
],
"Original": "FROM hub.example.com/ubuntu:20.04",
"JSON": false,
"Stage": 0,
"Path": "testdata/Dockerfile",
"StartLine": 2,
"EndLine": 2
},
{
"Cmd": "run",
"SubCmd": "",
"Flags": [],
"Value": [
"apt-get update && apt-get install curl"
],
"Original": "RUN apt-get update && apt-get install curl",
"JSON": false,
"Stage": 0,
"Path": "testdata/Dockerfile",
"StartLine": 4,
"EndLine": 4
},
{
"Cmd": "expose",
"SubCmd": "",
"Flags": [],
"Value": [
"22"
],
"Original": "EXPOSE 22",
"JSON": false,
"Stage": 0,
"Path": "testdata/Dockerfile",
"StartLine": 5,
"EndLine": 5
}
]
}
}
```