Skip to content

Commit

Permalink
update caching suspicious directories and files (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
RoseSecurity committed Feb 3, 2024
1 parent e8d60f4 commit 9f6e900
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHECKPOINT.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,4 +195,4 @@ These checkpoints referred to [Linux Best Practices](https://www.cyberciti.biz/t
### DKL-LI-0003
**Only put necessary files**

Check `.cache`, `tmp` and so on directories.
Check `.cache`, `.git` and so on directories.
4 changes: 2 additions & 2 deletions pkg/assessor/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import (
)

var (
reqFiles = []string{"Dockerfile", "docker-compose.yml", ".vimrc"}
reqFiles = []string{"Dockerfile", "docker-compose.yml", ".vimrc", ".DS_Store"}
// Directory ends "/" separator
reqDirs = []string{".cache/", "tmp/", ".git/", ".vscode/", ".idea/", ".npm/"}
reqDirs = []string{".cache/", ".aws/", ".azure/", ".gcp/", ".git/", ".vscode/", ".idea/", ".npm/"}
uncontrollableDirs = []string{"node_modules/", "vendor/"}
detectedDir = map[string]struct{}{}
)
Expand Down

0 comments on commit 9f6e900

Please sign in to comment.