# Bitrise with Fastlane match always fails to access to repo

**URL:** <https://discuss.bitrise.io/t/bitrise-with-fastlane-match-always-fails-to-access-to-repo/15197>\
**Category:** Question & Answer\
**Tags:** fastlane\
**Created:** [December 16, 2020, 9:56pm UTC](https://discuss.bitrise.io/t/bitrise-with-fastlane-match-always-fails-to-access-to-repo/15197 "2020-12-16T21:56:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![serhat-sezer](https://avatars.discourse-cdn.com/v4/letter/s/b19c9b/32.png) [@serhat-sezer](https://discuss.bitrise.io/u/serhat-sezer)\
**Post date:** [December 16, 2020, 9:56pm UTC](https://discuss.bitrise.io/t/bitrise-with-fastlane-match-always-fails-to-access-to-repo/15197/1 "2020-12-16T21:56:12Z")

</div>

I have a fastlane file and the certs repo resides in Gitlab privately. I’ve been trying almost a week and I never make it work. I tried to enable deploy keys with private keys on Gitlab but still nothing happened.  
I follow this steps in order to verify myself

> **[Configuring fastlane match for Bitrise](https://support.bitrise.io/hc/en-us/articles/4413055085969)**
>
> If you want to use fastlane match in your bitrise.io build, you only have to do three things:
> 
> 
> 
> Make sure that a single SSH key can be used to git clone both your main repository (the one you regi...

What bugs me is my repo and match files resides in the same repo. Bitrise successfully clone the repo but not the Fastlane match files.

Here is my Matchfile:

```
git_url("git@gitlab.com:my_username/private_cert-files.git")

storage_mode("git")

type("adhoc")

```

Here is my FastFile:

```
lane :sync_signing_assets do |options|
    # sync_device_info
    selected_type = options[:type]
    match(type: selected_type, readonly: true, git_private_key: "SHA256:LzEnYd7ZZbnKW3LmwSm11233XYG3NB4iDUMMY_DATA_wY")
  end

```

I also set secret env variable _MATCH\_PASSWORD_ which is my gitlab password. But still giving me the error:

> [21:54:50]: Exit status: 128
> 
> [21:54:50]: Error cloning certificates repo, please make sure you have read access to the repository you want to use

Thanks bunch any help and recommendations.

---

<div class="post-metadata">

**Author:** ![chaitanya.tanna](https://avatars.discourse-cdn.com/v4/letter/c/bc8723/32.png) [@chaitanya.tanna](https://discuss.bitrise.io/u/chaitanya.tanna)\
**Post date:** [December 22, 2020, 2:07pm UTC](https://discuss.bitrise.io/t/bitrise-with-fastlane-match-always-fails-to-access-to-repo/15197/2 "2020-12-22T14:07:12Z")

</div>

Hi @serhat-sezer  
Thank you for reaching out to Bitrise.  
According to the logs, it looks like there is a problem with accessing the git repository. Your CI machine should have an access to the repository where you are storing the certificates.

Following a [Git storage](https://docs.fastlane.tools/actions/match/#git-repo-access) and [Git repo access](https://docs.fastlane.tools/actions/match/#git-repo-access) sections from fastlane documentation should help you to resolve the issue.

Can you give it a try and tell us how did it go?

Thanks  
Chaitanya

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [January 21, 2021, 2:07pm UTC](https://discuss.bitrise.io/t/bitrise-with-fastlane-match-always-fails-to-access-to-repo/15197/3 "2021-01-21T14:07:12Z")

</div>

Closed on January 21, 2021, 2:07pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
