Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 1 addition & 5 deletions proxy.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,7 @@
}
}
],
"api": {
"github": {
"baseUrl": "https://api.github.com"
}
},
"api": {},
"commitConfig": {
"author": {
"email": {
Expand Down
2 changes: 1 addition & 1 deletion src/proxy/processors/push-action/gitleaks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ const exec = async (req: any, action: Action): Promise<Action> => {
step.setError('\n' + gitleaks.stdout + gitleaks.stderr);
}
} else {
console.log('succeded');
console.log('succeeded');
console.log(gitleaks.stderr);
}
} catch (e) {
Expand Down
129 changes: 129 additions & 0 deletions test/fixtures/test-package/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 1 addition & 7 deletions test/generated-config.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const chai = require('chai');
const { Convert } = require('../src/config/generated/config');
const defaultSettings = require('../proxy.config.json');
const { isUserInAdGroup } = require('../src/service/passport/ldaphelper');

Check warning on line 4 in test/generated-config.test.js

View workflow job for this annotation

GitHub Actions / Linting

'isUserInAdGroup' is assigned a value but never used. Allowed unused vars must match /^_/u

const { expect } = chai;

Expand Down Expand Up @@ -212,9 +212,6 @@
userInADGroup:
'https://somedomain.com/some/path/checkUserGroups?domain=<domain>&name=<name>&id=<id>',
},
github: {
baseUrl: 'https://api.github.com',
},
},

domains: {
Expand All @@ -224,13 +221,10 @@

// Complex nested structures
attestationConfig: {
enabled: true,
questions: [
{
id: 'q1',
type: 'boolean',
required: true,
label: 'Test Question',
tooltip: { text: 'Test tooltip content', links: ['https://git-proxy.finos.org./'] },
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion test/processors/gitLeaks.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ describe('gitleaks', () => {
expect(result.error).to.be.false;
expect(result.steps).to.have.lengthOf(1);
expect(result.steps[0].error).to.be.false;
expect(logStub.calledWith('succeded')).to.be.true;
expect(logStub.calledWith('succeeded')).to.be.true;
expect(logStub.calledWith('No leaks found')).to.be.true;
});

Expand Down
Loading