PaloAltoNetworks / PaloAltoNetworks/pan.dev

Issue with "Integrate Multiple Repositories"

Open
#736 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

documentation
Dominant language
MDX
Stars
78
Forks
88
Avg merge
5d 17h
Merged PRs (30d)
18

Description

Documentation link

https://pan.dev/prisma-cloud/api/code/update-repositories/

Describe the problem

I am trying to automate the process of integration of repositories but I cannot. I tried to do a get of the repos list and works, but when I do a POST operation following the documentation, I obtain a 403 Forbiden Error:

image

I verify and my user should be enough permissions to do the operation.
Also I tried in a Powershell script and Postman and fails in both parts...

I my case, I am using this API endpoint: https://api2.eu.prismacloud.io/code/api/v1/repositories

Suggested fix

Please verify https://api2.eu.prismacloud.io/code/api/v1/repositories is admitting POST operations

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked update-repositories documentation and reproduce the POST request against https://api2.eu.prismacloud.io/code/api/v1/repositories, comparing it with the working repository-list GET request. Check whether the endpoint accepts POST requests for the reported account and permissions; done means the cause of the 403 is identified and the endpoint behavior or documentation is corrected.

Written by the indexing model from the issue text.

Assessment

Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.