# CodeScan requests read and update permissions while connecting to Bitbucket

**CodeScan requests read and update permissions while establishing a connection with Bitbucket.**

To stop the pull request from being merged if the Quality Gate fails, CodeScan requires the **edit** repository permission. CodeScan will not modify any of the customer code, but it can prohibit customers from making changes.

Webhook is required to start analysis immediately, every time a pull request is sent or a commit is posted directly to a branch.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://knowledgebase.autorabit.com/product-guides/codescan/codescan-faqs/general/codescan-requests-read-and-update-permissions-while-connecting-to-bitbucket.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
