Skip to content

Commit

Permalink
Merge pull request #117 from debricked/fix-exclusion-issues
Browse files Browse the repository at this point in the history
Fix exclusion issues, matching too many files in debricked-scan
  • Loading branch information
ProgHaj authored Sep 15, 2023
2 parents 3aaa3e3 + c062bed commit 8aba7c1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/debricked.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:
restore-keys: |
${{ runner.os }}-go-
- run: |
go run cmd/debricked/main.go scan -t ${{ secrets.DEBRICKED_TOKEN }} -e "pkg/**" -e "test/**"
go run cmd/debricked/main.go scan -t ${{ secrets.DEBRICKED_TOKEN }} -e "pkg/**" -e "test/**" -e "**/testdata/**"
5 changes: 5 additions & 0 deletions internal/file/finder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,11 @@ func TestExclude(t *testing.T) {
exclusions: []string{"**/yarn/**"},
expectedExclusions: []string{"yarn", "yarn.lock"},
},
{
name: "TestDirectoryExclusionWithDoublestar",
exclusions: []string{"testdata/test/**"},
expectedExclusions: []string{"test", "test-file"},
},
}

for _, c := range cases {
Expand Down
5 changes: 0 additions & 5 deletions internal/file/testdata/misc/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +0,0 @@
{
"dependencies": {
"chart.js": "^2.9.3"
}
}
Empty file.

0 comments on commit 8aba7c1

Please sign in to comment.