Skip to content

Commit

Permalink
certs
Browse files Browse the repository at this point in the history
update to self signed certs
  • Loading branch information
beliaev-maksim authored Apr 16, 2024
1 parent 96497ee commit 025483d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,16 @@ async function run() {
}

const axios = require('axios');
// remove agent when nginx will be fixed and will provide CA certs
const agent = new https.Agent({
rejectUnauthorized: false // Ignore certificate verification
});

try {
console.log('Check in the signed list service');
const response = await axios.get(
'https://cla-checker.canonical.com/check_user/' + username
'https://cla-checker.canonical.com/check_user/' + username,
{ httpsAgent: agent }
);
if (response.status === 200) {
console.log('- ' + username + ' ✓ (has signed the CLA)');
Expand Down

0 comments on commit 025483d

Please sign in to comment.