# CML + Github actions + Google Drive / Service Account

**URL:** <https://discuss.dvc.org/t/cml-github-actions-google-drive-service-account/795>\
**Category:** Questions\
**Created:** [June 17, 2021, 11:54am UTC](https://discuss.dvc.org/t/cml-github-actions-google-drive-service-account/795 "2021-06-17T11:54:49Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![mcosta](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@mcosta](https://discuss.dvc.org/u/mcosta)\
**Post date:** [June 17, 2021, 2:57pm UTC](https://discuss.dvc.org/t/cml-github-actions-google-drive-service-account/795/5 "2021-06-17T14:57:34Z")

</div>

@0x2b3bfa0

On our first attempt we added the content from the json directly extracted from Google Coud Platform. Then we did exactly what was mentioned in documentation and updated the secret with the content of the local file (.dvc/tmp/gdrive-user-credentials.json).  
The error it gave was always the same.

The yaml file looks like this

name: model-training  
on: [push]  
jobs:  
run:  
runs-on: [ubuntu-latest]  
container: docker://dvcorg/cml:0-dvc2-base1  
steps:  
- uses: actions/checkout@v2  
- name: Test  
env:  
REPO\_TOKEN: ${{ secrets.GITHUB\_TOKEN }}  
GDRIVE\_CREDENTIALS\_DATA: ${{ secrets.GDRIVE\_CREDENTIALS\_DATA }}

```
    run: 
      # Install requirements
      pip install -r Requirements.txt
      
      dvc remote modify filterout --local gdrive_user_credentials_file .dvc/tmp/gdrive-user-credentials.json
```

---

_[View the full topic](https://discuss.dvc.org/t/cml-github-actions-google-drive-service-account/795)._
