File tree Expand file tree Collapse file tree 6 files changed +8
-8
lines changed
Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ require (
77 github.com/golang/mock v1.4.3
88 github.com/google/go-cmp v0.5.1 // indirect
99 github.com/google/go-github/v31 v31.0.0
10- github.com/nightfallai/nightfall_go_client v0.0.2
10+ github.com/nightfallai/nightfall_go_client v0.0.3
1111 github.com/pkg/errors v0.9.1 // indirect
1212 github.com/spf13/pflag v1.0.5
1313 github.com/stretchr/testify v1.6.1
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ github.com/google/go-github/v31 v31.0.0 h1:JJUxlP9lFK+ziXKimTCprajMApV1ecWD4NB6C
1515github.com/google/go-github/v31 v31.0.0 /go.mod h1:NQPZol8/1sMoWYGN2yaALIBytu17gAWfhbweiEed3pM =
1616github.com/google/go-querystring v1.0.0 h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASuANWTrk =
1717github.com/google/go-querystring v1.0.0 /go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck =
18- github.com/nightfallai/nightfall_go_client v0.0.2 h1:CrERjmU+HDOuzkX7qYo+gPKHXVPqEC3AAiCdVZH0Da4 =
19- github.com/nightfallai/nightfall_go_client v0.0.2 /go.mod h1:sv20Ki2CQcMFm4xkaPiEX9OzrhvAuqj4nc2bUP7biDk =
18+ github.com/nightfallai/nightfall_go_client v0.0.3 h1:QBftTJG2TxnoGiQnQwiwkAtfAEy+jlTx8r1XeBgVCiQ =
19+ github.com/nightfallai/nightfall_go_client v0.0.3 /go.mod h1:sv20Ki2CQcMFm4xkaPiEX9OzrhvAuqj4nc2bUP7biDk =
2020github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4 =
2121github.com/pkg/errors v0.9.1 /go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0 =
2222github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM =
Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ func (c *circleCiTestSuite) TestLoadEmptyConfig() {
216216 tp := c .initTestParams ()
217217 apiKey := "api-key"
218218 apiDetector := nightfallAPI .API_KEY
219- cryptoDetector := nightfallAPI .CRYPTOGRAPHIC_TOKEN
219+ cryptoDetector := nightfallAPI .CRYPTOGRAPHIC_KEY
220220 workspace , err := os .Getwd ()
221221 c .NoError (err , "Error getting workspace" )
222222 workspacePath := path .Join (workspace , "../../../../test/data" )
Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ func (g *githubTestSuite) TestLoadEmptyConfig() {
202202 owner := "nightfallai"
203203 repo := "testRepo"
204204 apiDetector := nightfallAPI .API_KEY
205- cryptoDetector := nightfallAPI .CRYPTOGRAPHIC_TOKEN
205+ cryptoDetector := nightfallAPI .CRYPTOGRAPHIC_KEY
206206 pullRequest := 1
207207 workspace , err := os .Getwd ()
208208 g .NoError (err , "Error getting workspace" )
Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ import (
1616const MaxConcurrentRoutinesCap = 50
1717const DefaultMaxNumberRoutines = 20
1818const nightfallConfigFilename = ".nightfalldlp/config.json"
19- const defaultDetectorsInfoMessage = "Using default detectors (API_KEY and CRYTOGRAPHIC_TOKEN )"
19+ const defaultDetectorsInfoMessage = "Using default detectors (API_KEY and CRYTOGRAPHIC_KEY )"
2020
2121var apiKeyDetector = nightfallAPI .API_KEY
22- var cryptoKeyDetector = nightfallAPI .CRYPTOGRAPHIC_TOKEN
22+ var cryptoKeyDetector = nightfallAPI .CRYPTOGRAPHIC_KEY
2323
2424// NightfallConfigFileStructure struct representation of nightfall config file
2525type NightfallConfigFileStructure struct {
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ func TestGetNightfallConfig(t *testing.T) {
3838
3939func TestGetNightfallConfigMissingConfigFile (t * testing.T ) {
4040 apiDetector := nightfallAPI .API_KEY
41- cryptoDetector := nightfallAPI .CRYPTOGRAPHIC_TOKEN
41+ cryptoDetector := nightfallAPI .CRYPTOGRAPHIC_KEY
4242 workspaceConfig , err := os .Getwd ()
4343 assert .NoError (t , err , "Unexpected error when getting current directory" )
4444 workspacePath := path .Join (workspaceConfig , "../../test/data" )
You can’t perform that action at this time.
0 commit comments