Skip to content

Commit

Permalink
bypass ssl check in axios
Browse files Browse the repository at this point in the history
  • Loading branch information
notshivansh committed Oct 29, 2024
1 parent 78b3d4b commit 04bcbc1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ jobs:
run: |
echo $IMAGE_TAG >> $GITHUB_STEP_SUMMARY
docker buildx create --use
docker buildx build --platform linux/arm64/v8,linux/amd64 -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG_1 -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG_2 . --push
docker buildx build --platform linux/arm64/v8,linux/amd64 -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG_1 -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG_2 . --push
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//const core = require('@actions/core');
const axios = require("axios")
const https = require("https")
const fs = require('fs');

const AKTO_DASHBOARD_URL = process.env['AKTO_DASHBOARD_URL']
Expand Down Expand Up @@ -156,8 +157,10 @@ async function run() {
data: data
}

const httpsAgent = new https.Agent({ rejectUnauthorized: false });

try {
res = await axios(config)
res = await axios(config, { httpsAgent: httpsAgent })
console.log("Akto CI/CD test started")

let waitTimeForResult = toInt(WAIT_TIME_FOR_RESULT)
Expand Down

0 comments on commit 04bcbc1

Please sign in to comment.