IaC scan GitHub Action 503 - https://api.anz.prismacloud.io/

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

IaC scan GitHub Action 503 - https://api.anz.prismacloud.io/

L0 Member

Hi all,

We are trying the github action for the first time and getting a 503 error:

Error: error : {
25 "name": "HttpClientError",
26 "statusCode": 503,
27 "result": {
28 "timestamp": "2023-07-14T01:04:27.408966Z",
29 "status": 503,
30 "error": "Service Unavailable",
31 "message": "Service is temporarily unavailable.",
32 "path": "/iac/v2/scans"
33 }
 
Our YAML 
- id: iac-scan
        name: Run Scan on TF files in the repository
        uses: prisma-cloud-shiftleft/iac-scan-action@v1.2
        with:
          # You will need Prisma Cloud API Access Token
          # More details in https://github.com/prisma-cloud-shiftleft/iac-scan-action
          prisma_api_url: ${{ vars.PRISMA_CLOUD_API_URL }}
          access_key: ${{ secrets.PRISMA_CLOUD_ACCESS_KEY }}
          secret_key: ${{ secrets.PRISMA_CLOUD_SECRET_KEY }}
          # Scan sources on Prisma Cloud are uniquely identified by their name
          asset_name: 'datascience--productlibrary'
          # The service need to know the type of IaC being scanned
          template_type: 'TF'
          template_version: '1.2.6'


1 REPLY 1

L1 Bithead

Hi, 

 

Can you try below action:- 

 

For Prisma Cloud users - use your access keys as token in the following format: "<AccessKey>::<SecretKey>"

eg:- 12345678::ABCDEF (Don't use " or < or > )

steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Run Prisma Cloud
id: Prisma_Cloud
uses: bridgecrewio/checkov-action@master
env:
PRISMA_API_URL: https://api.anz.prismacloud.io
with:
api-key: ${{ secrets.BC_API_KEY }}

 

rannaladasu_0-1689949885854.png

 

  • 785 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!