# Bitrise

Integrating in a Bitrise is very easy and very quick, as it requires just three steps.\
After creating the workspace app, head into its workflows.<br>

<figure><img src="https://lh5.googleusercontent.com/6EWxIwvqnwJd8BbUb-YhGOoJ0WPGOOgMMiOnHScj-nYrcpW90kKPOgZMIhPWefge7YLGWVYf_WKdTHE275lawFJK67Sfm5GJI83wCc2_PhfnFbq_nkS5QcS4DySGr5hCY3AbnpW7zXLOx2UJ0a13PXGsEVlyFoqucC5mUI8WvpgFnbmM3aZ7_aX984VvIQ" alt=""><figcaption></figcaption></figure>

First things first, set the METERIAN\_API\_TOKEN secret into the “secrets” view.

<figure><img src="https://lh5.googleusercontent.com/JNLuNt9tQJ-3NMrswX2BRd8tNWfT-DRXrBS_IcxT41VbQaNjQueEsfTPe0Qh2cke0AaiN4xCgMBtVM0Rff6DbtBx6JDcvJCuZ8nhXKqJwQq3CYlgYn_zhk6jTVyUMXVTge30lNTyNSrY4kPhMPLcII1ETJqBBfw-Ed0M0reMr29p9lWR2FuAe-p0-nYRQQ" alt=""><figcaption></figcaption></figure>

Then, from the workflow view on the left side, click on the “+” button wherever you want the Meterian scan to happen and select “Script” from the workflow recipes view. In this example it will be just after the Cocoapods install.&#x20;

<figure><img src="https://lh3.googleusercontent.com/dBJ2PILmpPI4ghsdoozlei-6tPzBEoSmgLg8l1TEwvPvBFRXecRv-Fcx-v1w8x159ZZmG-EdGAoHsC7P8ZjvUGpBokxWEVExAXbMnCC0fithF8ZYCuCNN--mFSGDLPNLl3m6nLHOkl4hV12iKu4R2vl1y9s2vvZyFp0tGqkYgwDy7046CD0K3Qa4uTMCHw" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
We recommend setting the Meterian task after the package manager is installed, as it is required by the Meterian scanner.
{% endhint %}

Now, for the final step, copy the following snippet on the “Script content” box.

```
#!/usr/bin/env bash
# Download Meterian Thin
mkdir -p ~/.meterian
wget https://www.meterian.io/downloads/meterian-cli.jar -P ~/.meterian > dev/null

#Launch Meterian
java -jar ~/.meterian/meterian-cli.jar --report-console
```

<figure><img src="https://lh5.googleusercontent.com/tUusBEEZ88Cdw4Hvu_0iCdpvSdEoO_y2yQ_1mAuKma1mZaApCU8Ko4Rj2owPyV_US038ogLxfvsyNHEs16szAuyDhOYymLNgkIH5LaQU9M3RG05wJ_81Qe1KKbVf3FfuuW9DhTNTIAymnmJ3c2KFMC9tVzsezf51IN7_Ob_VGVTZN0dMa5Lll6gafnu1vQ" alt=""><figcaption></figcaption></figure>

This script will download the Meterian Thin Client and immediately start the analysis.

Now you can save the workflow and launch a new build.

<br>


---

# 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://docs.meterian.io/ci-server-integrations/bitrise.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.
