Skip to content

Commit

Permalink
ci: Shut up truffle hog
Browse files Browse the repository at this point in the history
  • Loading branch information
lforst committed Jul 4, 2024
1 parent f8f3c98 commit fc5602d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ jest.mock('dns');

import * as dns from 'dns';
import { EventEmitter } from 'events';
import * as fs from 'fs';
import * as path from 'path';
import { PubSub } from '@google-cloud/pubsub';
import * as http2 from 'http2';
import * as nock from 'nock';
Expand Down Expand Up @@ -125,7 +123,8 @@ describe('GoogleCloudGrpc tracing', () => {
const pubsub = new PubSub({

Check warning on line 123 in packages/google-cloud-serverless/test/integrations/google-cloud-grpc.test.ts

View workflow job for this annotation

GitHub Actions / Secret Scan

Found verified PrivateKey result 🐷🔑
credentials: {
client_email: 'client@email',
private_key: fs.readFileSync(path.resolve(__dirname, 'private.pem')).toString(),
private_key:
'-----BEGIN RSA PRIVATE KEY-----\nMIICXQIBAAKBgQDzU+jLTzW6154Joezxrd2+5pCNYP0HcaMoYqEyXfNRpkNE7wrQ\nUEG830o4Qcaae2BhqZoujwSW7RkR6h0Fkd0WTR8h5J8rSGNHv/1jJoUUjP9iZ/5S\nFAyIIyEYfDPqtnA4iF1QWO2lXWlEFSuZjwM/8jBmeGzoiw17akNThIw8NwIDAQAB\nAoGATpboVloEAY/IdFX/QGOmfhTb1T3hG3lheBa695iOkO2BRo9qT7PMN6NqxlbA\nPX7ht0lfCfCZS+HSOg4CR50/6WXHMSmwlvcjGuDIDKWjviQTTYE77MlVBQHw9WzY\nPfiRBbtouyPGQtO4rk42zkIILC6exBZ1vKpRPOmTAnxrjCECQQD+56r6hYcS6GNp\nNOWyv0eVFMBX4iNWAsRf9JVVvGDz2rVuhnkNiN73vfffDWvSXkCydL1jFmalgdQD\ngm77UZQHAkEA9F+CauU0aZsJ1SthQ6H0sDQ+eNRUgnz4itnkSC2C20fZ3DaSpCMC\n0go81CcZOhftNO730ILqiS67C3d3rqLqUQJBAP10ROHMmz4Fq7MUUcClyPtHIuk/\nhXskTTZL76DMKmrN8NDxDLSUf38+eJRkt+z4osPOp/E6eN3gdXr32nox50kCQCl8\nhXGMU+eR0IuF/88xkY7Qb8KnmWlFuhQohZ7TSyHbAttl0GNZJkNuRYFm2duI8FZK\nM3wMnbCIZGy/7WuScOECQQCV+0yrf5dL1M2GHjJfwuTb00wRKalKQEH1v/kvE5vS\nFmdN7BPK5Ra50MaecMNoYqu9rmtyWRBn93dcvKrL57nY\n-----END RSA PRIVATE KEY-----\n', // trufflehog:ignore,
},
projectId: 'project-id',
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import * as fs from 'fs';
import * as path from 'path';
import { BigQuery } from '@google-cloud/bigquery';
import * as nock from 'nock';

Expand Down Expand Up @@ -50,7 +48,8 @@ describe('GoogleCloudHttp tracing', () => {
const bigquery = new BigQuery({

Check warning on line 48 in packages/google-cloud-serverless/test/integrations/google-cloud-http.test.ts

View workflow job for this annotation

GitHub Actions / Secret Scan

Found verified PrivateKey result 🐷🔑
credentials: {
client_email: 'client@email',
private_key: fs.readFileSync(path.resolve(__dirname, 'private.pem')).toString(),
private_key:
'-----BEGIN RSA PRIVATE KEY-----\nMIICXQIBAAKBgQDzU+jLTzW6154Joezxrd2+5pCNYP0HcaMoYqEyXfNRpkNE7wrQ\nUEG830o4Qcaae2BhqZoujwSW7RkR6h0Fkd0WTR8h5J8rSGNHv/1jJoUUjP9iZ/5S\nFAyIIyEYfDPqtnA4iF1QWO2lXWlEFSuZjwM/8jBmeGzoiw17akNThIw8NwIDAQAB\nAoGATpboVloEAY/IdFX/QGOmfhTb1T3hG3lheBa695iOkO2BRo9qT7PMN6NqxlbA\nPX7ht0lfCfCZS+HSOg4CR50/6WXHMSmwlvcjGuDIDKWjviQTTYE77MlVBQHw9WzY\nPfiRBbtouyPGQtO4rk42zkIILC6exBZ1vKpRPOmTAnxrjCECQQD+56r6hYcS6GNp\nNOWyv0eVFMBX4iNWAsRf9JVVvGDz2rVuhnkNiN73vfffDWvSXkCydL1jFmalgdQD\ngm77UZQHAkEA9F+CauU0aZsJ1SthQ6H0sDQ+eNRUgnz4itnkSC2C20fZ3DaSpCMC\n0go81CcZOhftNO730ILqiS67C3d3rqLqUQJBAP10ROHMmz4Fq7MUUcClyPtHIuk/\nhXskTTZL76DMKmrN8NDxDLSUf38+eJRkt+z4osPOp/E6eN3gdXr32nox50kCQCl8\nhXGMU+eR0IuF/88xkY7Qb8KnmWlFuhQohZ7TSyHbAttl0GNZJkNuRYFm2duI8FZK\nM3wMnbCIZGy/7WuScOECQQCV+0yrf5dL1M2GHjJfwuTb00wRKalKQEH1v/kvE5vS\nFmdN7BPK5Ra50MaecMNoYqu9rmtyWRBn93dcvKrL57nY\n-----END RSA PRIVATE KEY-----\n', // trufflehog:ignore,
},
projectId: 'project-id',
});
Expand Down
15 changes: 0 additions & 15 deletions packages/google-cloud-serverless/test/integrations/private.pem

This file was deleted.

0 comments on commit fc5602d

Please sign in to comment.