Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jay/chef 6031 #8261

Merged
merged 17 commits into from
Nov 7, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
adding exclution on testcase pem files
Signed-off-by: Jay Sharma <[email protected]>
jayvikramsharma1 committed Oct 26, 2023
commit e889f7ed5f45e472e68023b7cf19d54407352219
31 changes: 31 additions & 0 deletions tools/credscan/credscan.go
Original file line number Diff line number Diff line change
@@ -171,6 +171,37 @@ var a2Config = config{

// Exclude test file for verifyservice which uses RSA KEY for test cases
{regex: `components/automate-cli/pkg/testfiles/aws/valid_config.toml`},

// Exclude test file for certificate rotation
{regex: `components/automate-cli/pkg/testfiles/certs/private_key.pem`},
{regex: `components/automate-cli/pkg/testfiles/certs/public_key.pem`},
{regex: `components/automate-cli/pkg/testfiles/certs/test_a2_private_key_1.pem`},
{regex: `components/automate-cli/pkg/testfiles/certs/test_a2_private_key_2.pem`},
{regex: `components/automate-cli/pkg/testfiles/certs/test_a2_private_key_3.pem`},
{regex: `components/automate-cli/pkg/testfiles/certs/test_a2_public_key_1.pem`},
{regex: `components/automate-cli/pkg/testfiles/certs/test_a2_public_key_2.pem`},
{regex: `components/automate-cli/pkg/testfiles/certs/test_a2_public_key_3.pem`},
{regex: `components/automate-cli/pkg/testfiles/certs/test_admin_cert.pem`},
{regex: `components/automate-cli/pkg/testfiles/certs/test_admin_key.pem`},
{regex: `components/automate-cli/pkg/testfiles/certs/test_cs_private_key_1.pem`},
{regex: `components/automate-cli/pkg/testfiles/certs/test_cs_private_key_2.pem`},
{regex: `components/automate-cli/pkg/testfiles/certs/test_cs_private_key_3.pem`},
{regex: `components/automate-cli/pkg/testfiles/certs/test_cs_public_key_1.pem`},
{regex: `components/automate-cli/pkg/testfiles/certs/test_cs_public_key_2.pem`},
{regex: `components/automate-cli/pkg/testfiles/certs/test_cs_public_key_3.pem`},
{regex: `components/automate-cli/pkg/testfiles/certs/test_os_private_key_1.pem`},
{regex: `components/automate-cli/pkg/testfiles/certs/test_os_private_key_2.pem`},
{regex: `components/automate-cli/pkg/testfiles/certs/test_os_private_key_3.pem`},
{regex: `components/automate-cli/pkg/testfiles/certs/test_os_public_key_1.pem`},
{regex: `components/automate-cli/pkg/testfiles/certs/test_os_public_key_2.pem`},
{regex: `components/automate-cli/pkg/testfiles/certs/test_os_public_key_3.pem`},
{regex: `components/automate-cli/pkg/testfiles/certs/test_pg_private_key_1.pem`},
{regex: `components/automate-cli/pkg/testfiles/certs/test_pg_private_key_2.pem`},
{regex: `components/automate-cli/pkg/testfiles/certs/test_pg_private_key_3.pem`},
{regex: `components/automate-cli/pkg/testfiles/certs/test_pg_public_key_1.pem`},
{regex: `components/automate-cli/pkg/testfiles/certs/test_pg_public_key_2.pem`},
{regex: `components/automate-cli/pkg/testfiles/certs/test_pg_public_key_3.pem`},
{regex: `components/automate-cli/pkg/testfiles/certs/test_root_ca.pem`},
},
contentInclude: []pattern{
{