Skip to content

Commit

Permalink
Introduce post-vendor.sh
Browse files Browse the repository at this point in the history
This script can be used to clean up vendored code from security issues,
here we remove two Dockerfiles that some security issues.

Signed-off-by: Arik Hadas <[email protected]>
  • Loading branch information
ahadas committed Oct 22, 2023
1 parent 6e3e8a7 commit d268912
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 24 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ tidy:
# Run go mod vendor against code
vendor:
go mod vendor
./hack/post-vendor.sh

# Generate code
generate: controller-gen
Expand Down
4 changes: 4 additions & 0 deletions hack/post-vendor.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

rm vendor/github.com/nxadm/tail/Dockerfile
rm vendor/github.com/pelletier/go-toml/v2/Dockerfile
19 changes: 0 additions & 19 deletions vendor/github.com/nxadm/tail/Dockerfile

This file was deleted.

5 changes: 0 additions & 5 deletions vendor/github.com/pelletier/go-toml/v2/Dockerfile

This file was deleted.

0 comments on commit d268912

Please sign in to comment.