Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM golang:latest

RUN go install github.com/visma-prodsec/confused@latest
ENTRYPOINT ["confused"]
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,17 @@ Issues found, the following packages are not available in public package reposit
[!] internal/_package2

```

## Docker version
### Build container
```
docker build . -t confused
cd /directory/to/test
docker run --rm -v "$(pwd):/src" confused -l npm /src/package.json
```

### Scanning package.json and pom.xml in projects with multiple subdirectories
```
find . -name package.json -exec bash -c 'cd "$(dirname {})" && echo "testing {}" && docker run --rm -v "$(pwd):/src" confused -l npm /src/package.json' \;
find . -name pom.xml -exec bash -c 'cd "$(dirname {})" && echo "testing {}" && docker run --rm -v "$(pwd):/src" confused -l mvn /src/pom.xml' \;
```