Skip to content

Commit

Permalink
Remove Secrets Scanner Sacanners Names config (#862)
Browse files Browse the repository at this point in the history
  • Loading branch information
talarian1 authored Jul 16, 2023
1 parent 47a0f3f commit 40e7d2d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions xray/audit/jas/secretsscanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ package jas
import (
"errors"
"fmt"
"os"
"path/filepath"

"github.com/jfrog/jfrog-cli-core/v2/utils/config"
"github.com/jfrog/jfrog-cli-core/v2/utils/coreutils"
"github.com/jfrog/jfrog-cli-core/v2/xray/utils"
"github.com/jfrog/jfrog-client-go/utils/errorutils"
"github.com/jfrog/jfrog-client-go/utils/io/fileutils"
"github.com/owenrumney/go-sarif/v2/sarif"
"gopkg.in/yaml.v2"
"os"
"path/filepath"
)

const (
secretsScanCommand = "sec"
secretsScannersNames = "tokens, entropy"
secretsScannerType = "secrets-scan"
secScanFailureMessage = "failed to run secrets scan. Cause: %s"
)
Expand Down Expand Up @@ -100,7 +100,6 @@ type secretsScanConfiguration struct {
Roots []string `yaml:"roots"`
Output string `yaml:"output"`
Type string `yaml:"type"`
Scanners string `yaml:"scanners"`
SkippedDirs []string `yaml:"skipped-folders"`
}

Expand All @@ -116,7 +115,6 @@ func (s *SecretScanManager) createConfigFile() error {
Roots: []string{currentDir},
Output: s.resultsFileName,
Type: secretsScannerType,
Scanners: secretsScannersNames,
SkippedDirs: skippedDirs,
},
},
Expand Down

0 comments on commit 40e7d2d

Please sign in to comment.