unable to use credential generated from google-github-actions/[email protected]

This issue has been tracked since 2022-05-05.

TL;DR

I've created a workflow for a CI/CD pipeline using Github Actions and GCP Artifact Registry, in order to build and deploy a Python Package for every commit in my main branch.

Expected behavior

I've exported the json credential from the Service Account in GCP IAM, created a secret in Github repo named GCP_PRIVATE_KEY (others variables for the pipeline flow were implemented as secrets too, like GCP_PROJECT_ID) and created my yaml file using the example from this repo. Using credentials_json method for authentication in GCP SDK (gcloud) it would be able to use the account service that already have the permissions to do so.

Observed behavior

The following error comes up:

ERROR: (gcloud.artifacts.print-settings.python) Failed to load credential file: [/home/runner/work/my-repo/my-repo/gha-creds-18e61677b3269532.json]. ('Failed to load service account credentials from /home/runner/work/my-repo/gha-creds-18e61677b3269532.json', ValueError('No key could be detected.'))

Action YAML

name: Python package

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

jobs:
  build:
    env:
      
        REPOSITORY_NAME: '${{ secrets.GCP_REPOSITORY_NAME }}'
        SERVICE_ACCOUNT: '${{ secrets.GCP_SERVICE_ACCOUNT }}'
        PROJECT: '${{ secrets.GCP_PROJECT }}'
        REGION: '${{ secrets.GCP_REGION }}'
        PACKAGE_NAME: '${{ secrets.GCP_PACKAGE_NAME }}'

    runs-on: ubuntu-latest
    strategy:
      max-parallel: 4
      fail-fast: false
      matrix:
        python-version: ["3.8"]
      
    steps:
    - uses: actions/[email protected]
    
        # Setup gcloud CLI
    - name: Set up Cloud SDK
      uses: google-github-actions/[email protected]
      
    - id: 'auth'
      name: Authenticate to Google Cloud
      uses: google-github-actions/[email protected]
      with: 
        credentials_json: '${{ secrets.GCP_PRIVATE_KEY }}'
    
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/[email protected]
      with:
        python-version: ${{ matrix.python-version }}

    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        python -m pip install flake8 pytest
        python -m pip install setuptools wheel twine keyrings.google-artifactregistry-auth
        if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
    - name: Lint with flake8
      run: |
        # stop the build if there are Python syntax errors or undefined names
        flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
        # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
        flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
    - name: Build Package
      run: |
        python setup.py sdist bdist_wheel
      
    - name: List files
      run: |
        ls
      
    - name: Upload to Artifact Registry
      run: |
        gcloud config set artifacts/repository $REPOSITORY_NAME
        gcloud config set artifacts/location $REGION
        gcloud config set account $SERVICE_ACCOUNT
        
         gcloud auth activate-service-account $SERVICE_ACCOUNT --key-file=$GOOGLE_GHA_CREDS_PATH --project=$PROJECT
        
        gcloud artifacts print-settings python > ~/.pypirc
        mkdir -p ~/.config/pip/
        cp ~/.pypirc ~/.config/pip/pip.conf
        
        python -m twine upload --repository_url https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY_NAME/ dist/*

Log output

2022-05-04T21:46:11.6157508Z Requested labels: ubuntu-latest
2022-05-04T21:46:11.6157555Z Job defined at: luisarodriguees/my-repo/.github/workflows/[email protected]/heads/main
2022-05-04T21:46:11.6157579Z Waiting for a runner to pick up this job...
2022-05-04T21:46:12.4670975Z Job is waiting for a hosted runner to come online.
2022-05-04T21:46:14.9947089Z Job is about to start running on the hosted runner: Hosted Agent (hosted)
2022-05-04T21:46:19.0653566Z Current runner version: '2.291.1'
2022-05-04T21:46:19.0680253Z ##[group]Operating System
2022-05-04T21:46:19.0680837Z Ubuntu
2022-05-04T21:46:19.0681280Z 20.04.4
2022-05-04T21:46:19.0681604Z LTS
2022-05-04T21:46:19.0681940Z ##[endgroup]
2022-05-04T21:46:19.0682326Z ##[group]Virtual Environment
2022-05-04T21:46:19.0682797Z Environment: ubuntu-20.04
2022-05-04T21:46:19.0683182Z Version: 20220425.1
2022-05-04T21:46:19.0683775Z Included Software: https://github.com/actions/virtual-environments/blob/ubuntu20/20220425.1/images/linux/Ubuntu2004-Readme.md
2022-05-04T21:46:19.0684575Z Image Release: https://github.com/actions/virtual-environments/releases/tag/ubuntu20%2F20220425.1
2022-05-04T21:46:19.0685145Z ##[endgroup]
2022-05-04T21:46:19.0685553Z ##[group]Virtual Environment Provisioner
2022-05-04T21:46:19.0685976Z 1.0.0.0-main-20220421-1
2022-05-04T21:46:19.0686348Z ##[endgroup]
2022-05-04T21:46:19.0687454Z ##[group]GITHUB_TOKEN Permissions
2022-05-04T21:46:19.0688149Z Actions: write
2022-05-04T21:46:19.0688726Z Checks: write
2022-05-04T21:46:19.0689153Z Contents: write
2022-05-04T21:46:19.0689540Z Deployments: write
2022-05-04T21:46:19.0689929Z Discussions: write
2022-05-04T21:46:19.0690325Z Issues: write
2022-05-04T21:46:19.0690678Z Metadata: read
2022-05-04T21:46:19.0691096Z Packages: write
2022-05-04T21:46:19.0691490Z Pages: write
2022-05-04T21:46:19.0691863Z PullRequests: write
2022-05-04T21:46:19.0692266Z RepositoryProjects: write
2022-05-04T21:46:19.0692686Z SecurityEvents: write
2022-05-04T21:46:19.0693092Z Statuses: write
2022-05-04T21:46:19.0693454Z ##[endgroup]
2022-05-04T21:46:19.0697387Z Secret source: Actions
2022-05-04T21:46:19.0697978Z Prepare workflow directory
2022-05-04T21:46:19.1903325Z Prepare all required actions
2022-05-04T21:46:19.2084980Z Getting action download info
2022-05-04T21:46:19.6525793Z Download action repository 'actions/[email protected]' (SHA:2541b1294d2704b0964813337f33b291d3f8596b)
2022-05-04T21:46:20.2826542Z Download action repository 'google-github-actions/[email protected]' (SHA:877d4953d2c70a0ba7ef3290ae968eb24af233bb)
2022-05-04T21:46:20.7329948Z Download action repository 'google-github-actions/[email protected]' (SHA:b258a9f230b36c9fa86dfaa43d1906bd76399edb)
2022-05-04T21:46:21.1438167Z Download action repository 'actions/[email protected]' (SHA:98f2ad02fd48d057ee3b4d4f66525b231c3e52b6)
2022-05-04T21:46:21.9830955Z ##[group]Run actions/[email protected]
2022-05-04T21:46:21.9831286Z with:
2022-05-04T21:46:21.9831647Z   repository: luisarodriguees/my-repo
2022-05-04T21:46:21.9832238Z   token: ***
2022-05-04T21:46:21.9832480Z   ssh-strict: true
2022-05-04T21:46:21.9832751Z   persist-credentials: true
2022-05-04T21:46:21.9833016Z   clean: true
2022-05-04T21:46:21.9833254Z   fetch-depth: 1
2022-05-04T21:46:21.9833507Z   lfs: false
2022-05-04T21:46:21.9833748Z   submodules: false
2022-05-04T21:46:21.9834025Z   set-safe-directory: true
2022-05-04T21:46:21.9834280Z env:
2022-05-04T21:46:21.9834568Z   REPOSITORY_NAME: ***
2022-05-04T21:46:21.9835006Z   SERVICE_ACCOUNT: ***
2022-05-04T21:46:21.9835297Z   PROJECT: ***
2022-05-04T21:46:21.9835569Z   REGION: ***
2022-05-04T21:46:21.9835890Z   PACKAGE_NAME: ***
2022-05-04T21:46:21.9836136Z ##[endgroup]
2022-05-04T21:46:22.2273640Z Syncing repository: luisarodriguees/my-repo
2022-05-04T21:46:22.2275536Z ##[group]Getting Git version info
2022-05-04T21:46:22.2276251Z Working directory is '/home/runner/work/my-repo/my-repo'
2022-05-04T21:46:22.2277698Z [command]/usr/bin/git version
2022-05-04T21:46:22.2390960Z git version 2.36.0
2022-05-04T21:46:22.2407215Z ##[endgroup]
2022-05-04T21:46:22.2424360Z Temporarily overriding HOME='/home/runner/work/_temp/c60229e5-7276-48ef-8c43-f5d27d315efe' before making global git config changes
2022-05-04T21:46:22.2424928Z Adding repository directory to the temporary git global config as a safe directory
2022-05-04T21:46:22.2429393Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/my-repo/my-repo
2022-05-04T21:46:22.2471010Z Deleting the contents of '/home/runner/work/my-repo/my-repo'
2022-05-04T21:46:22.2474984Z ##[group]Initializing the repository
2022-05-04T21:46:22.2478434Z [command]/usr/bin/git init /home/runner/work/my-repo/my-repo
2022-05-04T21:46:22.2535485Z hint: Using 'master' as the name for the initial branch. This default branch name
2022-05-04T21:46:22.2536246Z hint: is subject to change. To configure the initial branch name to use in all
2022-05-04T21:46:22.2537314Z hint: of your new repositories, which will suppress this warning, call:
2022-05-04T21:46:22.2537891Z hint: 
2022-05-04T21:46:22.2538755Z hint: 	git config --global init.defaultBranch <name>
2022-05-04T21:46:22.2539234Z hint: 
2022-05-04T21:46:22.2539988Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
2022-05-04T21:46:22.2540626Z hint: 'development'. The just-created branch can be renamed via this command:
2022-05-04T21:46:22.2541057Z hint: 
2022-05-04T21:46:22.2541759Z hint: 	git branch -m <name>
2022-05-04T21:46:22.2556150Z Initialized empty Git repository in /home/runner/work/my-repo/my-repo/.git/
2022-05-04T21:46:22.2566370Z [command]/usr/bin/git remote add origin https://github.com/luisarodriguees/my-repo
2022-05-04T21:46:22.2610719Z ##[endgroup]
2022-05-04T21:46:22.2611390Z ##[group]Disabling automatic garbage collection
2022-05-04T21:46:22.2616905Z [command]/usr/bin/git config --local gc.auto 0
2022-05-04T21:46:22.2649375Z ##[endgroup]
2022-05-04T21:46:22.2649989Z ##[group]Setting up auth
2022-05-04T21:46:22.2658794Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2022-05-04T21:46:22.2695185Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :
2022-05-04T21:46:22.3008585Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2022-05-04T21:46:22.3040606Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :
2022-05-04T21:46:22.3258124Z [command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic ***
2022-05-04T21:46:22.3295781Z ##[endgroup]
2022-05-04T21:46:22.3296636Z ##[group]Fetching the repository
2022-05-04T21:46:22.3304269Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +a98b8209a4266acd4ef41d5a638ce10c3c507d7b:refs/remotes/origin/main
2022-05-04T21:46:22.8073455Z remote: Enumerating objects: 18, done.        
2022-05-04T21:46:22.8077549Z remote: Counting objects:   5% (1/18)        
2022-05-04T21:46:22.8078484Z remote: Counting objects:  11% (2/18)        
2022-05-04T21:46:22.8079073Z remote: Counting objects:  16% (3/18)        
2022-05-04T21:46:22.8080029Z remote: Counting objects:  22% (4/18)        
2022-05-04T21:46:22.8080600Z remote: Counting objects:  27% (5/18)        
2022-05-04T21:46:22.8081364Z remote: Counting objects:  33% (6/18)        
2022-05-04T21:46:22.8081892Z remote: Counting objects:  38% (7/18)        
2022-05-04T21:46:22.8082631Z remote: Counting objects:  44% (8/18)        
2022-05-04T21:46:22.8083153Z remote: Counting objects:  50% (9/18)        
2022-05-04T21:46:22.8083924Z remote: Counting objects:  55% (10/18)        
2022-05-04T21:46:22.8084464Z remote: Counting objects:  61% (11/18)        
2022-05-04T21:46:22.8085215Z remote: Counting objects:  66% (12/18)        
2022-05-04T21:46:22.8085750Z remote: Counting objects:  72% (13/18)        
2022-05-04T21:46:22.8086501Z remote: Counting objects:  77% (14/18)        
2022-05-04T21:46:22.8087045Z remote: Counting objects:  83% (15/18)        
2022-05-04T21:46:22.8088032Z remote: Counting objects:  88% (16/18)        
2022-05-04T21:46:22.8088641Z remote: Counting objects:  94% (17/18)        
2022-05-04T21:46:22.8089391Z remote: Counting objects: 100% (18/18)        
2022-05-04T21:46:22.8089944Z remote: Counting objects: 100% (18/18), done.        
2022-05-04T21:46:22.8090759Z remote: Compressing objects:   7% (1/13)        
2022-05-04T21:46:22.8091331Z remote: Compressing objects:  15% (2/13)        
2022-05-04T21:46:22.8092086Z remote: Compressing objects:  23% (3/13)        
2022-05-04T21:46:22.8092634Z remote: Compressing objects:  30% (4/13)        
2022-05-04T21:46:22.8093393Z remote: Compressing objects:  38% (5/13)        
2022-05-04T21:46:22.8093943Z remote: Compressing objects:  46% (6/13)        
2022-05-04T21:46:22.8094704Z remote: Compressing objects:  53% (7/13)        
2022-05-04T21:46:22.8095267Z remote: Compressing objects:  61% (8/13)        
2022-05-04T21:46:22.8096022Z remote: Compressing objects:  69% (9/13)        
2022-05-04T21:46:22.8096705Z remote: Compressing objects:  76% (10/13)        
2022-05-04T21:46:22.8097790Z remote: Compressing objects:  84% (11/13)        
2022-05-04T21:46:22.8098204Z remote: Compressing objects:  92% (12/13)        
2022-05-04T21:46:22.8098678Z remote: Compressing objects: 100% (13/13)        
2022-05-04T21:46:22.8099323Z remote: Compressing objects: 100% (13/13), done.        
2022-05-04T21:46:22.8296033Z remote: Total 18 (delta 0), reused 11 (delta 0), pack-reused 0        
2022-05-04T21:46:22.8317850Z From https://github.com/luisarodriguees/my-repo
2022-05-04T21:46:22.8318691Z  * [new ref]         a98b8209a4266acd4ef41d5a638ce10c3c507d7b -> origin/main
2022-05-04T21:46:22.8343713Z ##[endgroup]
2022-05-04T21:46:22.8344506Z ##[group]Determining the checkout info
2022-05-04T21:46:22.8345547Z ##[endgroup]
2022-05-04T21:46:22.8346192Z ##[group]Checking out the ref
2022-05-04T21:46:22.8350226Z [command]/usr/bin/git checkout --progress --force -B main refs/remotes/origin/main
2022-05-04T21:46:22.8405614Z Switched to a new branch 'main'
2022-05-04T21:46:22.8406326Z branch 'main' set up to track 'origin/main'.
2022-05-04T21:46:22.8412314Z ##[endgroup]
2022-05-04T21:46:22.8454679Z [command]/usr/bin/git log -1 --format='%H'
2022-05-04T21:46:22.8484668Z 'a98b8209a4266acd4ef41d5a638ce10c3c507d7b'
2022-05-04T21:46:22.8749776Z ##[group]Run google-github-actions/[email protected]
2022-05-04T21:46:22.8750086Z with:
2022-05-04T21:46:22.8750314Z   version: latest
2022-05-04T21:46:22.8750588Z   export_default_credentials: false
2022-05-04T21:46:22.8750876Z   cleanup_credentials: true
2022-05-04T21:46:22.8751121Z env:
2022-05-04T21:46:22.8751533Z   REPOSITORY_NAME: ***
2022-05-04T21:46:22.8751977Z   SERVICE_ACCOUNT: ***
2022-05-04T21:46:22.8752294Z   PROJECT: ***
2022-05-04T21:46:22.8752571Z   REGION: ***
2022-05-04T21:46:22.8752894Z   PACKAGE_NAME: ***
2022-05-04T21:46:22.8753135Z ##[endgroup]
2022-05-04T21:46:24.4089138Z [command]/usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /home/runner/work/_temp/d13d8dd2-da77-40f8-9468-7ab39e5d963a -f /home/runner/work/_temp/0a80b8df-3b71-4740-99ea-c209ad958452
2022-05-04T21:46:35.1968750Z No credentials detected, skipping authentication
2022-05-04T21:46:35.2119101Z ##[group]Run google-github-actions/[email protected]
2022-05-04T21:46:35.2119554Z with:
2022-05-04T21:46:35.2126258Z   credentials_json: ***
2022-05-04T21:46:35.2126638Z   create_credentials_file: true
2022-05-04T21:46:35.2127015Z   export_environment_variables: true
2022-05-04T21:46:35.2127426Z   cleanup_credentials: true
2022-05-04T21:46:35.2127792Z   access_token_lifetime: 3600s
2022-05-04T21:46:35.2128242Z   access_token_scopes: https://www.googleapis.com/auth/cloud-platform
2022-05-04T21:46:35.2128675Z   id_token_include_email: false
2022-05-04T21:46:35.2129018Z env:
2022-05-04T21:46:35.2129418Z   REPOSITORY_NAME: ***
2022-05-04T21:46:35.2129925Z   SERVICE_ACCOUNT: ***
2022-05-04T21:46:35.2130319Z   PROJECT: ***
2022-05-04T21:46:35.2130670Z   REGION: ***
2022-05-04T21:46:35.2131115Z   PACKAGE_NAME: ***
2022-05-04T21:46:35.2131701Z   CLOUDSDK_METRICS_ENVIRONMENT: github-actions-setup-gcloud
2022-05-04T21:46:35.2132132Z ##[endgroup]
2022-05-04T21:46:35.2888306Z Created credentials file at "/home/runner/work/my-repo/my-repo/gha-creds-c430a1e973f97a30.json"
2022-05-04T21:46:35.2905191Z 
2022-05-04T21:46:35.2936850Z 
2022-05-04T21:46:35.3181695Z ##[group]Run actions/[email protected]
2022-05-04T21:46:35.3181973Z with:
2022-05-04T21:46:35.3182208Z   python-version: 3.8
2022-05-04T21:46:35.3182595Z   token: ***
2022-05-04T21:46:35.3182813Z env:
2022-05-04T21:46:35.3183080Z   REPOSITORY_NAME: ***
2022-05-04T21:46:35.3183501Z   SERVICE_ACCOUNT: ***
2022-05-04T21:46:35.3183766Z   PROJECT: ***
2022-05-04T21:46:35.3184042Z   REGION: ***
2022-05-04T21:46:35.3184337Z   PACKAGE_NAME: ***
2022-05-04T21:46:35.3184672Z   CLOUDSDK_METRICS_ENVIRONMENT: github-actions-setup-gcloud
2022-05-04T21:46:35.3185254Z   CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE: /home/runner/work/my-repo/my-repo/gha-creds-c430a1e973f97a30.json
2022-05-04T21:46:35.3185988Z   GOOGLE_APPLICATION_CREDENTIALS: /home/runner/work/my-repo/my-repo/gha-creds-c430a1e973f97a30.json
2022-05-04T21:46:35.3186726Z   GOOGLE_GHA_CREDS_PATH: /home/runner/work/my-repo/my-repo/gha-creds-c430a1e973f97a30.json
2022-05-04T21:46:35.3187217Z   CLOUDSDK_CORE_PROJECT: ***
2022-05-04T21:46:35.3187507Z   CLOUDSDK_PROJECT: ***
2022-05-04T21:46:35.3187791Z   GCLOUD_PROJECT: ***
2022-05-04T21:46:35.3188058Z   GCP_PROJECT: ***
2022-05-04T21:46:35.3188333Z   GOOGLE_CLOUD_PROJECT: ***
2022-05-04T21:46:35.3188583Z ##[endgroup]
2022-05-04T21:46:35.4761611Z Successfully setup CPython (3.8.12)
2022-05-04T21:46:35.4908875Z ##[group]Run python -m pip install --upgrade pip
2022-05-04T21:46:35.4909324Z �[36;1mpython -m pip install --upgrade pip�[0m
2022-05-04T21:46:35.4909658Z �[36;1mpython -m pip install flake8 pytest�[0m
2022-05-04T21:46:35.4910109Z �[36;1mpython -m pip install setuptools wheel twine keyrings.google-artifactregistry-auth�[0m
2022-05-04T21:46:35.4910587Z �[36;1mif [ -f requirements.txt ]; then pip install -r requirements.txt; fi�[0m
2022-05-04T21:46:35.4964408Z shell: /usr/bin/bash -e {0}
2022-05-04T21:46:35.4964687Z env:
2022-05-04T21:46:35.4965020Z   REPOSITORY_NAME: ***
2022-05-04T21:46:35.4965475Z   SERVICE_ACCOUNT: ***
2022-05-04T21:46:35.4965767Z   PROJECT: ***
2022-05-04T21:46:35.4966040Z   REGION: ***
2022-05-04T21:46:35.4966344Z   PACKAGE_NAME: ***
2022-05-04T21:46:35.4966682Z   CLOUDSDK_METRICS_ENVIRONMENT: github-actions-setup-gcloud
2022-05-04T21:46:35.4967320Z   CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE: /home/runner/work/my-repo/my-repo/gha-creds-c430a1e973f97a30.json
2022-05-04T21:46:35.4968058Z   GOOGLE_APPLICATION_CREDENTIALS: /home/runner/work/my-repo/my-repo/gha-creds-c430a1e973f97a30.json
2022-05-04T21:46:35.4968785Z   GOOGLE_GHA_CREDS_PATH: /home/runner/work/my-repo/my-repo/gha-creds-c430a1e973f97a30.json
2022-05-04T21:46:35.4969307Z   CLOUDSDK_CORE_PROJECT: ***
2022-05-04T21:46:35.4969609Z   CLOUDSDK_PROJECT: ***
2022-05-04T21:46:35.4969892Z   GCLOUD_PROJECT: ***
2022-05-04T21:46:35.4970170Z   GCP_PROJECT: ***
2022-05-04T21:46:35.4970463Z   GOOGLE_CLOUD_PROJECT: ***
2022-05-04T21:46:35.4970801Z   pythonLocation: /opt/hostedtoolcache/Python/3.8.12/x64
2022-05-04T21:46:35.4971179Z   LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.12/x64/lib
2022-05-04T21:46:35.4971492Z ##[endgroup]
2022-05-04T21:46:36.4221064Z Requirement already satisfied: pip in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (22.0.4)
2022-05-04T21:46:37.5294460Z Collecting flake8
2022-05-04T21:46:37.5981338Z   Downloading flake8-4.0.1-py2.py3-none-any.whl (64 kB)
2022-05-04T21:46:37.6172264Z      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 64.1/64.1 KB 3.5 MB/s eta 0:00:00
2022-05-04T21:46:37.7302428Z Collecting pytest
2022-05-04T21:46:37.7463721Z   Downloading pytest-7.1.2-py3-none-any.whl (297 kB)
2022-05-04T21:46:37.7708527Z      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 297.0/297.0 KB 13.2 MB/s eta 0:00:00
2022-05-04T21:46:37.8091655Z Collecting pycodestyle<2.9.0,>=2.8.0
2022-05-04T21:46:37.8415534Z   Downloading pycodestyle-2.8.0-py2.py3-none-any.whl (42 kB)
2022-05-04T21:46:37.8462867Z      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 42.1/42.1 KB 14.6 MB/s eta 0:00:00
2022-05-04T21:46:37.8798071Z Collecting mccabe<0.7.0,>=0.6.0
2022-05-04T21:46:37.8955942Z   Downloading mccabe-0.6.1-py2.py3-none-any.whl (8.6 kB)
2022-05-04T21:46:37.9344704Z Collecting pyflakes<2.5.0,>=2.4.0
2022-05-04T21:46:37.9508733Z   Downloading pyflakes-2.4.0-py2.py3-none-any.whl (69 kB)
2022-05-04T21:46:37.9559957Z      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 69.7/69.7 KB 24.5 MB/s eta 0:00:00
2022-05-04T21:46:38.0080971Z Collecting tomli>=1.0.0
2022-05-04T21:46:38.0342778Z   Downloading tomli-2.0.1-py3-none-any.whl (12 kB)
2022-05-04T21:46:38.0618709Z Collecting iniconfig
2022-05-04T21:46:38.0778262Z   Downloading iniconfig-1.1.1-py2.py3-none-any.whl (5.0 kB)
2022-05-04T21:46:38.1184764Z Collecting attrs>=19.2.0
2022-05-04T21:46:38.1348658Z   Downloading attrs-21.4.0-py2.py3-none-any.whl (60 kB)
2022-05-04T21:46:38.1398563Z      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.6/60.6 KB 22.1 MB/s eta 0:00:00
2022-05-04T21:46:38.1771824Z Collecting pluggy<2.0,>=0.12
2022-05-04T21:46:38.1934686Z   Downloading pluggy-1.0.0-py2.py3-none-any.whl (13 kB)
2022-05-04T21:46:38.2471092Z Collecting packaging
2022-05-04T21:46:38.2653835Z   Downloading packaging-21.3-py3-none-any.whl (40 kB)
2022-05-04T21:46:38.2699024Z      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 40.8/40.8 KB 16.4 MB/s eta 0:00:00
2022-05-04T21:46:38.3140697Z Collecting py>=1.8.2
2022-05-04T21:46:38.3321997Z   Downloading py-1.11.0-py2.py3-none-any.whl (98 kB)
2022-05-04T21:46:38.3374323Z      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 98.7/98.7 KB 34.3 MB/s eta 0:00:00
2022-05-04T21:46:38.4647509Z Collecting pyparsing!=3.0.5,>=2.0.2
2022-05-04T21:46:38.4811038Z   Downloading pyparsing-3.0.8-py3-none-any.whl (98 kB)
2022-05-04T21:46:38.4866001Z      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 98.5/98.5 KB 31.5 MB/s eta 0:00:00
2022-05-04T21:46:38.5822404Z Installing collected packages: mccabe, iniconfig, tomli, pyparsing, pyflakes, pycodestyle, py, pluggy, attrs, packaging, flake8, pytest
2022-05-04T21:46:39.1570308Z Successfully installed attrs-21.4.0 flake8-4.0.1 iniconfig-1.1.1 mccabe-0.6.1 packaging-21.3 pluggy-1.0.0 py-1.11.0 pycodestyle-2.8.0 pyflakes-2.4.0 pyparsing-3.0.8 pytest-7.1.2 tomli-2.0.1
2022-05-04T21:46:39.8965491Z Requirement already satisfied: setuptools in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (56.0.0)
2022-05-04T21:46:39.9989943Z Collecting wheel
2022-05-04T21:46:40.0811589Z   Downloading wheel-0.37.1-py2.py3-none-any.whl (35 kB)
2022-05-04T21:46:40.1377527Z Collecting twine
2022-05-04T21:46:40.1551284Z   Downloading twine-4.0.0-py3-none-any.whl (36 kB)
2022-05-04T21:46:40.1905088Z Collecting keyrings.google-artifactregistry-auth
2022-05-04T21:46:40.2075621Z   Downloading keyrings.google_artifactregistry_auth-1.0.0-py3-none-any.whl (10.0 kB)
2022-05-04T21:46:40.3430508Z Collecting rich>=12.0.0
2022-05-04T21:46:40.3606263Z   Downloading rich-12.3.0-py3-none-any.whl (232 kB)
2022-05-04T21:46:40.3844790Z      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 232.1/232.1 KB 11.1 MB/s eta 0:00:00
2022-05-04T21:46:40.4171630Z Collecting requests-toolbelt!=0.9.0,>=0.8.0
2022-05-04T21:46:40.4406784Z   Downloading requests_toolbelt-0.9.1-py2.py3-none-any.whl (54 kB)
2022-05-04T21:46:40.4457872Z      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.3/54.3 KB 19.1 MB/s eta 0:00:00
2022-05-04T21:46:40.4787888Z Collecting pkginfo>=1.8.1
2022-05-04T21:46:40.4953695Z   Downloading pkginfo-1.8.2-py2.py3-none-any.whl (26 kB)
2022-05-04T21:46:40.5318181Z Collecting rfc3986>=1.4.0
2022-05-04T21:46:40.5483232Z   Downloading rfc3986-2.0.0-py2.py3-none-any.whl (31 kB)
2022-05-04T21:46:40.6374974Z Collecting importlib-metadata>=3.6
2022-05-04T21:46:40.6537352Z   Downloading importlib_metadata-4.11.3-py3-none-any.whl (18 kB)
2022-05-04T21:46:40.7208122Z Collecting requests>=2.20
2022-05-04T21:46:40.7371816Z   Downloading requests-2.27.1-py2.py3-none-any.whl (63 kB)
2022-05-04T21:46:40.7417745Z      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 63.1/63.1 KB 25.8 MB/s eta 0:00:00
2022-05-04T21:46:40.8276329Z Collecting keyring>=15.1
2022-05-04T21:46:40.8439866Z   Downloading keyring-23.5.0-py3-none-any.whl (33 kB)
2022-05-04T21:46:40.8832601Z Collecting readme-renderer>=21.0
2022-05-04T21:46:40.8996319Z   Downloading readme_renderer-35.0-py3-none-any.whl (14 kB)
2022-05-04T21:46:40.9604828Z Collecting urllib3>=1.26.0
2022-05-04T21:46:40.9765201Z   Downloading urllib3-1.26.9-py2.py3-none-any.whl (138 kB)
2022-05-04T21:46:40.9822873Z      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 139.0/139.0 KB 40.9 MB/s eta 0:00:00
2022-05-04T21:46:41.1139647Z Collecting google-auth
2022-05-04T21:46:41.1315791Z   Downloading google_auth-2.6.6-py2.py3-none-any.whl (156 kB)
2022-05-04T21:46:41.1559042Z      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 156.7/156.7 KB 6.8 MB/s eta 0:00:00
2022-05-04T21:46:41.1584057Z Requirement already satisfied: pluggy in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from keyrings.google-artifactregistry-auth) (1.0.0)
2022-05-04T21:46:41.2221193Z Collecting zipp>=0.5
2022-05-04T21:46:41.2379316Z   Downloading zipp-3.8.0-py3-none-any.whl (5.4 kB)
2022-05-04T21:46:41.2872348Z Collecting SecretStorage>=3.2
2022-05-04T21:46:41.3030707Z   Downloading SecretStorage-3.3.2-py3-none-any.whl (15 kB)
2022-05-04T21:46:41.3462601Z Collecting jeepney>=0.4.2
2022-05-04T21:46:41.3622881Z   Downloading jeepney-0.8.0-py3-none-any.whl (48 kB)
2022-05-04T21:46:41.3669231Z      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 48.4/48.4 KB 19.1 MB/s eta 0:00:00
2022-05-04T21:46:41.4244237Z Collecting bleach>=2.1.0
2022-05-04T21:46:41.4403769Z   Downloading bleach-5.0.0-py3-none-any.whl (160 kB)
2022-05-04T21:46:41.4467394Z      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 160.3/160.3 KB 41.2 MB/s eta 0:00:00
2022-05-04T21:46:41.4874083Z Collecting docutils>=0.13.1
2022-05-04T21:46:41.5050303Z   Downloading docutils-0.18.1-py2.py3-none-any.whl (570 kB)
2022-05-04T21:46:41.5267803Z      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 570.0/570.0 KB 29.3 MB/s eta 0:00:00
2022-05-04T21:46:41.5823331Z Collecting Pygments>=2.5.1
2022-05-04T21:46:41.5984164Z   Downloading Pygments-2.12.0-py3-none-any.whl (1.1 MB)
2022-05-04T21:46:41.6192518Z      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 59.2 MB/s eta 0:00:00
2022-05-04T21:46:41.6900494Z Collecting certifi>=2017.4.17
2022-05-04T21:46:41.7064768Z   Downloading certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
2022-05-04T21:46:41.7134039Z      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 149.2/149.2 KB 33.1 MB/s eta 0:00:00
2022-05-04T21:46:41.7731072Z Collecting idna<4,>=2.5
2022-05-04T21:46:41.7892074Z   Downloading idna-3.3-py3-none-any.whl (61 kB)
2022-05-04T21:46:41.7943325Z      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.2/61.2 KB 22.9 MB/s eta 0:00:00
2022-05-04T21:46:41.8422619Z Collecting charset-normalizer~=2.0.0
2022-05-04T21:46:41.8586641Z   Downloading charset_normalizer-2.0.12-py3-none-any.whl (39 kB)
2022-05-04T21:46:41.9326959Z Collecting commonmark<0.10.0,>=0.9.0
2022-05-04T21:46:41.9490475Z   Downloading commonmark-0.9.1-py2.py3-none-any.whl (51 kB)
2022-05-04T21:46:41.9534075Z      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 51.1/51.1 KB 21.7 MB/s eta 0:00:00
2022-05-04T21:46:41.9887663Z Collecting typing-extensions<5.0,>=4.0.0
2022-05-04T21:46:42.0084914Z   Downloading typing_extensions-4.2.0-py3-none-any.whl (24 kB)
2022-05-04T21:46:42.1149133Z Collecting pyasn1-modules>=0.2.1
2022-05-04T21:46:42.1324930Z   Downloading pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)
2022-05-04T21:46:42.1385900Z      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 155.3/155.3 KB 45.3 MB/s eta 0:00:00
2022-05-04T21:46:42.1758179Z Collecting six>=1.9.0
2022-05-04T21:46:42.2054368Z   Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
2022-05-04T21:46:42.2514259Z Collecting cachetools<6.0,>=2.0.0
2022-05-04T21:46:42.2675971Z   Downloading cachetools-5.0.0-py3-none-any.whl (9.1 kB)
2022-05-04T21:46:42.3098975Z Collecting rsa<5,>=3.1.4
2022-05-04T21:46:42.3265021Z   Downloading rsa-4.8-py3-none-any.whl (39 kB)
2022-05-04T21:46:42.3785433Z Collecting webencodings
2022-05-04T21:46:42.3955979Z   Downloading webencodings-0.5.1-py2.py3-none-any.whl (11 kB)
2022-05-04T21:46:42.4991868Z Collecting pyasn1<0.5.0,>=0.4.6
2022-05-04T21:46:42.5151068Z   Downloading pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
2022-05-04T21:46:42.5198312Z      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 77.1/77.1 KB 29.6 MB/s eta 0:00:00
2022-05-04T21:46:42.8916160Z Collecting cryptography>=2.0
2022-05-04T21:46:42.9085527Z   Downloading cryptography-37.0.2-cp36-abi3-manylinux_2_24_x86_64.whl (4.0 MB)
2022-05-04T21:46:42.9482202Z      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.0/4.0 MB 108.6 MB/s eta 0:00:00
2022-05-04T21:46:43.2624512Z Collecting cffi>=1.12
2022-05-04T21:46:43.2805941Z   Downloading cffi-1.15.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (446 kB)
2022-05-04T21:46:43.2921183Z      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 446.7/446.7 KB 77.8 MB/s eta 0:00:00
2022-05-04T21:46:43.3319217Z Collecting pycparser
2022-05-04T21:46:43.3489599Z   Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB)
2022-05-04T21:46:43.3547030Z      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 118.7/118.7 KB 38.5 MB/s eta 0:00:00
2022-05-04T21:46:43.6186702Z Installing collected packages: webencodings, pyasn1, pkginfo, commonmark, certifi, zipp, wheel, urllib3, typing-extensions, six, rsa, rfc3986, Pygments, pycparser, pyasn1-modules, jeepney, idna, docutils, charset-normalizer, cachetools, rich, requests, importlib-metadata, google-auth, cffi, bleach, requests-toolbelt, readme-renderer, cryptography, SecretStorage, keyring, twine, keyrings.google-artifactregistry-auth
2022-05-04T21:46:46.0696818Z Successfully installed Pygments-2.12.0 SecretStorage-3.3.2 bleach-5.0.0 cachetools-5.0.0 certifi-2021.10.8 cffi-1.15.0 charset-normalizer-2.0.12 commonmark-0.9.1 cryptography-37.0.2 docutils-0.18.1 google-auth-2.6.6 idna-3.3 importlib-metadata-4.11.3 jeepney-0.8.0 keyring-23.5.0 keyrings.google-artifactregistry-auth-1.0.0 pkginfo-1.8.2 pyasn1-0.4.8 pyasn1-modules-0.2.8 pycparser-2.21 readme-renderer-35.0 requests-2.27.1 requests-toolbelt-0.9.1 rfc3986-2.0.0 rich-12.3.0 rsa-4.8 six-1.16.0 twine-4.0.0 typing-extensions-4.2.0 urllib3-1.26.9 webencodings-0.5.1 wheel-0.37.1 zipp-3.8.0
2022-05-04T21:46:46.8625407Z Requirement already satisfied: flake8 in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from -r requirements.txt (line 1)) (4.0.1)
2022-05-04T21:46:46.8629242Z Requirement already satisfied: pytest in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from -r requirements.txt (line 2)) (7.1.2)
2022-05-04T21:46:46.8633441Z Requirement already satisfied: setuptools in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from -r requirements.txt (line 3)) (56.0.0)
2022-05-04T21:46:46.8637523Z Requirement already satisfied: wheel in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from -r requirements.txt (line 4)) (0.37.1)
2022-05-04T21:46:46.8641760Z Requirement already satisfied: twine in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from -r requirements.txt (line 5)) (4.0.0)
2022-05-04T21:46:46.8649785Z Requirement already satisfied: keyrings.google-artifactregistry-auth in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from -r requirements.txt (line 6)) (1.0.0)
2022-05-04T21:46:46.8706086Z Requirement already satisfied: pyflakes<2.5.0,>=2.4.0 in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from flake8->-r requirements.txt (line 1)) (2.4.0)
2022-05-04T21:46:46.8713681Z Requirement already satisfied: pycodestyle<2.9.0,>=2.8.0 in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from flake8->-r requirements.txt (line 1)) (2.8.0)
2022-05-04T21:46:46.8723342Z Requirement already satisfied: mccabe<0.7.0,>=0.6.0 in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from flake8->-r requirements.txt (line 1)) (0.6.1)
2022-05-04T21:46:46.8862811Z Requirement already satisfied: pluggy<2.0,>=0.12 in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from pytest->-r requirements.txt (line 2)) (1.0.0)
2022-05-04T21:46:46.8867625Z Requirement already satisfied: iniconfig in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from pytest->-r requirements.txt (line 2)) (1.1.1)
2022-05-04T21:46:46.8874801Z Requirement already satisfied: attrs>=19.2.0 in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from pytest->-r requirements.txt (line 2)) (21.4.0)
2022-05-04T21:46:46.8878830Z Requirement already satisfied: packaging in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from pytest->-r requirements.txt (line 2)) (21.3)
2022-05-04T21:46:46.8886082Z Requirement already satisfied: tomli>=1.0.0 in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from pytest->-r requirements.txt (line 2)) (2.0.1)
2022-05-04T21:46:46.8893127Z Requirement already satisfied: py>=1.8.2 in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from pytest->-r requirements.txt (line 2)) (1.11.0)
2022-05-04T21:46:46.8997361Z Requirement already satisfied: requests>=2.20 in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from twine->-r requirements.txt (line 5)) (2.27.1)
2022-05-04T21:46:46.9004484Z Requirement already satisfied: urllib3>=1.26.0 in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from twine->-r requirements.txt (line 5)) (1.26.9)
2022-05-04T21:46:46.9012247Z Requirement already satisfied: importlib-metadata>=3.6 in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from twine->-r requirements.txt (line 5)) (4.11.3)
2022-05-04T21:46:46.9021138Z Requirement already satisfied: rich>=12.0.0 in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from twine->-r requirements.txt (line 5)) (12.3.0)
2022-05-04T21:46:46.9028154Z Requirement already satisfied: rfc3986>=1.4.0 in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from twine->-r requirements.txt (line 5)) (2.0.0)
2022-05-04T21:46:46.9035233Z Requirement already satisfied: pkginfo>=1.8.1 in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from twine->-r requirements.txt (line 5)) (1.8.2)
2022-05-04T21:46:46.9042947Z Requirement already satisfied: readme-renderer>=21.0 in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from twine->-r requirements.txt (line 5)) (35.0)
2022-05-04T21:46:46.9052610Z Requirement already satisfied: requests-toolbelt!=0.9.0,>=0.8.0 in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from twine->-r requirements.txt (line 5)) (0.9.1)
2022-05-04T21:46:46.9059565Z Requirement already satisfied: keyring>=15.1 in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from twine->-r requirements.txt (line 5)) (23.5.0)
2022-05-04T21:46:46.9152485Z Requirement already satisfied: google-auth in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from keyrings.google-artifactregistry-auth->-r requirements.txt (line 6)) (2.6.6)
2022-05-04T21:46:46.9628387Z Requirement already satisfied: zipp>=0.5 in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from importlib-metadata>=3.6->twine->-r requirements.txt (line 5)) (3.8.0)
2022-05-04T21:46:46.9804511Z Requirement already satisfied: jeepney>=0.4.2 in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from keyring>=15.1->twine->-r requirements.txt (line 5)) (0.8.0)
2022-05-04T21:46:46.9818919Z Requirement already satisfied: SecretStorage>=3.2 in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from keyring>=15.1->twine->-r requirements.txt (line 5)) (3.3.2)
2022-05-04T21:46:47.0000024Z Requirement already satisfied: docutils>=0.13.1 in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from readme-renderer>=21.0->twine->-r requirements.txt (line 5)) (0.18.1)
2022-05-04T21:46:47.0007962Z Requirement already satisfied: Pygments>=2.5.1 in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from readme-renderer>=21.0->twine->-r requirements.txt (line 5)) (2.12.0)
2022-05-04T21:46:47.0014682Z Requirement already satisfied: bleach>=2.1.0 in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from readme-renderer>=21.0->twine->-r requirements.txt (line 5)) (5.0.0)
2022-05-04T21:46:47.0161206Z Requirement already satisfied: idna<4,>=2.5 in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from requests>=2.20->twine->-r requirements.txt (line 5)) (3.3)
2022-05-04T21:46:47.0167354Z Requirement already satisfied: certifi>=2017.4.17 in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from requests>=2.20->twine->-r requirements.txt (line 5)) (2021.10.8)
2022-05-04T21:46:47.0180429Z Requirement already satisfied: charset-normalizer~=2.0.0 in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from requests>=2.20->twine->-r requirements.txt (line 5)) (2.0.12)
2022-05-04T21:46:47.0325132Z Requirement already satisfied: typing-extensions<5.0,>=4.0.0 in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from rich>=12.0.0->twine->-r requirements.txt (line 5)) (4.2.0)
2022-05-04T21:46:47.0336058Z Requirement already satisfied: commonmark<0.10.0,>=0.9.0 in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from rich>=12.0.0->twine->-r requirements.txt (line 5)) (0.9.1)
2022-05-04T21:46:47.0651455Z Requirement already satisfied: rsa<5,>=3.1.4 in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from google-auth->keyrings.google-artifactregistry-auth->-r requirements.txt (line 6)) (4.8)
2022-05-04T21:46:47.0657739Z Requirement already satisfied: six>=1.9.0 in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from google-auth->keyrings.google-artifactregistry-auth->-r requirements.txt (line 6)) (1.16.0)
2022-05-04T21:46:47.0670270Z Requirement already satisfied: pyasn1-modules>=0.2.1 in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from google-auth->keyrings.google-artifactregistry-auth->-r requirements.txt (line 6)) (0.2.8)
2022-05-04T21:46:47.0677576Z Requirement already satisfied: cachetools<6.0,>=2.0.0 in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from google-auth->keyrings.google-artifactregistry-auth->-r requirements.txt (line 6)) (5.0.0)
2022-05-04T21:46:47.0730344Z Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from packaging->pytest->-r requirements.txt (line 2)) (3.0.8)
2022-05-04T21:46:47.0873426Z Requirement already satisfied: webencodings in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from bleach>=2.1.0->readme-renderer>=21.0->twine->-r requirements.txt (line 5)) (0.5.1)
2022-05-04T21:46:47.1330026Z Requirement already satisfied: pyasn1<0.5.0,>=0.4.6 in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from pyasn1-modules>=0.2.1->google-auth->keyrings.google-artifactregistry-auth->-r requirements.txt (line 6)) (0.4.8)
2022-05-04T21:46:47.1461659Z Requirement already satisfied: cryptography>=2.0 in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from SecretStorage>=3.2->keyring>=15.1->twine->-r requirements.txt (line 5)) (37.0.2)
2022-05-04T21:46:47.1851710Z Requirement already satisfied: cffi>=1.12 in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from cryptography>=2.0->SecretStorage>=3.2->keyring>=15.1->twine->-r requirements.txt (line 5)) (1.15.0)
2022-05-04T21:46:47.1932810Z Requirement already satisfied: pycparser in /opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages (from cffi>=1.12->cryptography>=2.0->SecretStorage>=3.2->keyring>=15.1->twine->-r requirements.txt (line 5)) (2.21)
2022-05-04T21:46:47.3994974Z ##[group]Run # stop the build if there are Python syntax errors or undefined names
2022-05-04T21:46:47.3995466Z �[36;1m# stop the build if there are Python syntax errors or undefined names�[0m
2022-05-04T21:46:47.3995897Z �[36;1mflake8 . --count --select=E9,F63,F7,F82 --show-source --statistics�[0m
2022-05-04T21:46:47.3996327Z �[36;1m# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide�[0m
2022-05-04T21:46:47.3996785Z �[36;1mflake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics�[0m
2022-05-04T21:46:47.4046455Z shell: /usr/bin/bash -e {0}
2022-05-04T21:46:47.4046718Z env:
2022-05-04T21:46:47.4047087Z   REPOSITORY_NAME: ***
2022-05-04T21:46:47.4047530Z   SERVICE_ACCOUNT: ***
2022-05-04T21:46:47.4047802Z   PROJECT: ***
2022-05-04T21:46:47.4048087Z   REGION: ***
2022-05-04T21:46:47.4048386Z   PACKAGE_NAME: ***
2022-05-04T21:46:47.4048727Z   CLOUDSDK_METRICS_ENVIRONMENT: github-actions-setup-gcloud
2022-05-04T21:46:47.4049355Z   CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE: /home/runner/work/my-repo/my-repo/gha-creds-c430a1e973f97a30.json
2022-05-04T21:46:47.4050090Z   GOOGLE_APPLICATION_CREDENTIALS: /home/runner/work/my-repo/my-repo/gha-creds-c430a1e973f97a30.json
2022-05-04T21:46:47.4050804Z   GOOGLE_GHA_CREDS_PATH: /home/runner/work/my-repo/my-repo/gha-creds-c430a1e973f97a30.json
2022-05-04T21:46:47.4051317Z   CLOUDSDK_CORE_PROJECT: ***
2022-05-04T21:46:47.4051613Z   CLOUDSDK_PROJECT: ***
2022-05-04T21:46:47.4051895Z   GCLOUD_PROJECT: ***
2022-05-04T21:46:47.4052166Z   GCP_PROJECT: ***
2022-05-04T21:46:47.4052465Z   GOOGLE_CLOUD_PROJECT: ***
2022-05-04T21:46:47.4052802Z   pythonLocation: /opt/hostedtoolcache/Python/3.8.12/x64
2022-05-04T21:46:47.4053186Z   LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.12/x64/lib
2022-05-04T21:46:47.4053491Z ##[endgroup]
2022-05-04T21:46:47.6711886Z 0
2022-05-04T21:46:47.8507352Z ./setup.py:23:2: W292 no newline at end of file
2022-05-04T21:46:47.8508031Z ./hello_world/hello.py:2:19: W292 no newline at end of file
2022-05-04T21:46:47.8508777Z ./src/***/example.py:2:22: W292 no newline at end of file
2022-05-04T21:46:47.8509348Z ./src/hello_world/hello.py:2:19: W292 no newline at end of file
2022-05-04T21:46:47.8509905Z 4     W292 no newline at end of file
2022-05-04T21:46:47.8510310Z 4
2022-05-04T21:46:47.8739646Z ##[group]Run python setup.py sdist bdist_wheel
2022-05-04T21:46:47.8740020Z �[36;1mpython setup.py sdist bdist_wheel�[0m
2022-05-04T21:46:47.8797327Z shell: /usr/bin/bash -e {0}
2022-05-04T21:46:47.8797597Z env:
2022-05-04T21:46:47.8797912Z   REPOSITORY_NAME: ***
2022-05-04T21:46:47.8798357Z   SERVICE_ACCOUNT: ***
2022-05-04T21:46:47.8798717Z   PROJECT: ***
2022-05-04T21:46:47.8799020Z   REGION: ***
2022-05-04T21:46:47.8799327Z   PACKAGE_NAME: ***
2022-05-04T21:46:47.8799966Z   CLOUDSDK_METRICS_ENVIRONMENT: github-actions-setup-gcloud
2022-05-04T21:46:47.8800564Z   CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE: /home/runner/work/my-repo/my-repo/gha-creds-c430a1e973f97a30.json
2022-05-04T21:46:47.8801327Z   GOOGLE_APPLICATION_CREDENTIALS: /home/runner/work/my-repo/my-repo/gha-creds-c430a1e973f97a30.json
2022-05-04T21:46:47.8802075Z   GOOGLE_GHA_CREDS_PATH: /home/runner/work/my-repo/my-repo/gha-creds-c430a1e973f97a30.json
2022-05-04T21:46:47.8802581Z   CLOUDSDK_CORE_PROJECT: ***
2022-05-04T21:46:47.8802879Z   CLOUDSDK_PROJECT: ***
2022-05-04T21:46:47.8803159Z   GCLOUD_PROJECT: ***
2022-05-04T21:46:47.8803444Z   GCP_PROJECT: ***
2022-05-04T21:46:47.8803724Z   GOOGLE_CLOUD_PROJECT: ***
2022-05-04T21:46:47.8804055Z   pythonLocation: /opt/hostedtoolcache/Python/3.8.12/x64
2022-05-04T21:46:47.8804438Z   LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.12/x64/lib
2022-05-04T21:46:47.8804745Z ##[endgroup]
2022-05-04T21:46:48.1894302Z running sdist
2022-05-04T21:46:48.1895164Z running egg_info
2022-05-04T21:46:48.2023840Z creating src/***.egg-info
2022-05-04T21:46:48.2024819Z writing src/***.egg-info/PKG-INFO
2022-05-04T21:46:48.2027034Z writing dependency_links to src/***.egg-info/dependency_links.txt
2022-05-04T21:46:48.2028681Z writing top-level names to src/***.egg-info/top_level.txt
2022-05-04T21:46:48.2030015Z writing manifest file 'src/***.egg-info/SOURCES.txt'
2022-05-04T21:46:48.2750547Z adding license file 'LICENSE' (matched pattern 'LICEN[CS]E*')
2022-05-04T21:46:48.2753347Z reading manifest file 'src/***.egg-info/SOURCES.txt'
2022-05-04T21:46:48.2760606Z writing manifest file 'src/***.egg-info/SOURCES.txt'
2022-05-04T21:46:48.2761326Z running check
2022-05-04T21:46:48.3178633Z creating ***-0.0.0
2022-05-04T21:46:48.3179788Z creating ***-0.0.0/src
2022-05-04T21:46:48.3180778Z creating ***-0.0.0/src/***
2022-05-04T21:46:48.3181660Z creating ***-0.0.0/src/***.egg-info
2022-05-04T21:46:48.3182439Z creating ***-0.0.0/src/hello_world
2022-05-04T21:46:48.3183600Z copying files to ***-0.0.0...
2022-05-04T21:46:48.3185794Z copying LICENSE -> ***-0.0.0
2022-05-04T21:46:48.3187008Z copying README.md -> ***-0.0.0
2022-05-04T21:46:48.3188275Z copying setup.cfg -> ***-0.0.0
2022-05-04T21:46:48.3189312Z copying setup.py -> ***-0.0.0
2022-05-04T21:46:48.3190593Z copying src/***/__init__.py -> ***-0.0.0/src/***
2022-05-04T21:46:48.3191507Z copying src/***/example.py -> ***-0.0.0/src/***
2022-05-04T21:46:48.3192603Z copying src/***.egg-info/PKG-INFO -> ***-0.0.0/src/***.egg-info
2022-05-04T21:46:48.3193702Z copying src/***.egg-info/SOURCES.txt -> ***-0.0.0/src/***.egg-info
2022-05-04T21:46:48.3194786Z copying src/***.egg-info/dependency_links.txt -> ***-0.0.0/src/***.egg-info
2022-05-04T21:46:48.3195829Z copying src/***.egg-info/top_level.txt -> ***-0.0.0/src/***.egg-info
2022-05-04T21:46:48.3197453Z copying src/hello_world/__init__.py -> ***-0.0.0/src/hello_world
2022-05-04T21:46:48.3198320Z copying src/hello_world/hello.py -> ***-0.0.0/src/hello_world
2022-05-04T21:46:48.3205487Z Writing ***-0.0.0/setup.cfg
2022-05-04T21:46:48.3206366Z creating dist
2022-05-04T21:46:48.3217865Z Creating tar archive
2022-05-04T21:46:48.3267675Z removing '***-0.0.0' (and everything under it)
2022-05-04T21:46:48.3271299Z running bdist_wheel
2022-05-04T21:46:48.3385306Z running build
2022-05-04T21:46:48.3385592Z running build_py
2022-05-04T21:46:48.3386245Z creating build
2022-05-04T21:46:48.3387079Z creating build/lib
2022-05-04T21:46:48.3387497Z creating build/lib/***
2022-05-04T21:46:48.3388520Z copying src/***/__init__.py -> build/lib/***
2022-05-04T21:46:48.3389610Z copying src/***/example.py -> build/lib/***
2022-05-04T21:46:48.3391417Z creating build/lib/hello_world
2022-05-04T21:46:48.3392245Z copying src/hello_world/hello.py -> build/lib/hello_world
2022-05-04T21:46:48.3393607Z copying src/hello_world/__init__.py -> build/lib/hello_world
2022-05-04T21:46:48.3415417Z installing to build/bdist.linux-x86_64/wheel
2022-05-04T21:46:48.3415736Z running install
2022-05-04T21:46:48.3417553Z running install_lib
2022-05-04T21:46:48.3445832Z creating build/bdist.linux-x86_64
2022-05-04T21:46:48.3446417Z creating build/bdist.linux-x86_64/wheel
2022-05-04T21:46:48.3447583Z creating build/bdist.linux-x86_64/wheel/***
2022-05-04T21:46:48.3448388Z copying build/lib/***/__init__.py -> build/bdist.linux-x86_64/wheel/***
2022-05-04T21:46:48.3449446Z copying build/lib/***/example.py -> build/bdist.linux-x86_64/wheel/***
2022-05-04T21:46:48.3450566Z creating build/bdist.linux-x86_64/wheel/hello_world
2022-05-04T21:46:48.3451298Z copying build/lib/hello_world/hello.py -> build/bdist.linux-x86_64/wheel/hello_world
2022-05-04T21:46:48.3452317Z copying build/lib/hello_world/__init__.py -> build/bdist.linux-x86_64/wheel/hello_world
2022-05-04T21:46:48.3452871Z running install_egg_info
2022-05-04T21:46:48.3490915Z Copying src/***.egg-info to build/bdist.linux-x86_64/wheel/***-0.0.0-py3.8.egg-info
2022-05-04T21:46:48.3494340Z running install_scripts
2022-05-04T21:46:48.3975360Z adding license file "LICENSE" (matched pattern "LICEN[CS]E*")
2022-05-04T21:46:48.3978209Z creating build/bdist.linux-x86_64/wheel/***-0.0.0.dist-info/WHEEL
2022-05-04T21:46:48.3980918Z creating 'dist/***-0.0.0-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
2022-05-04T21:46:48.3983285Z adding '***/__init__.py'
2022-05-04T21:46:48.3984846Z adding '***/example.py'
2022-05-04T21:46:48.3988791Z adding 'hello_world/__init__.py'
2022-05-04T21:46:48.3989722Z adding 'hello_world/hello.py'
2022-05-04T21:46:48.3992076Z adding '***-0.0.0.dist-info/LICENSE'
2022-05-04T21:46:48.3992812Z adding '***-0.0.0.dist-info/METADATA'
2022-05-04T21:46:48.3993929Z adding '***-0.0.0.dist-info/WHEEL'
2022-05-04T21:46:48.3994985Z adding '***-0.0.0.dist-info/top_level.txt'
2022-05-04T21:46:48.3997465Z adding '***-0.0.0.dist-info/RECORD'
2022-05-04T21:46:48.3998012Z removing build/bdist.linux-x86_64/wheel
2022-05-04T21:46:48.4259343Z ##[group]Run ls
2022-05-04T21:46:48.4259618Z �[36;1mls�[0m
2022-05-04T21:46:48.4309731Z shell: /usr/bin/bash -e {0}
2022-05-04T21:46:48.4310073Z env:
2022-05-04T21:46:48.4310414Z   REPOSITORY_NAME: ***
2022-05-04T21:46:48.4310873Z   SERVICE_ACCOUNT: ***
2022-05-04T21:46:48.4311149Z   PROJECT: ***
2022-05-04T21:46:48.4311418Z   REGION: ***
2022-05-04T21:46:48.4311718Z   PACKAGE_NAME: ***
2022-05-04T21:46:48.4312063Z   CLOUDSDK_METRICS_ENVIRONMENT: github-actions-setup-gcloud
2022-05-04T21:46:48.4312686Z   CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE: /home/runner/work/my-repo/my-repo/gha-creds-c430a1e973f97a30.json
2022-05-04T21:46:48.4313435Z   GOOGLE_APPLICATION_CREDENTIALS: /home/runner/work/my-repo/my-repo/gha-creds-c430a1e973f97a30.json
2022-05-04T21:46:48.4314187Z   GOOGLE_GHA_CREDS_PATH: /home/runner/work/my-repo/my-repo/gha-creds-c430a1e973f97a30.json
2022-05-04T21:46:48.4314701Z   CLOUDSDK_CORE_PROJECT: ***
2022-05-04T21:46:48.4315004Z   CLOUDSDK_PROJECT: ***
2022-05-04T21:46:48.4315304Z   GCLOUD_PROJECT: ***
2022-05-04T21:46:48.4315585Z   GCP_PROJECT: ***
2022-05-04T21:46:48.4315868Z   GOOGLE_CLOUD_PROJECT: ***
2022-05-04T21:46:48.4316203Z   pythonLocation: /opt/hostedtoolcache/Python/3.8.12/x64
2022-05-04T21:46:48.4316587Z   LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.12/x64/lib
2022-05-04T21:46:48.4316889Z ##[endgroup]
2022-05-04T21:46:48.4405603Z LICENSE
2022-05-04T21:46:48.4405990Z README.md
2022-05-04T21:46:48.4406294Z build
2022-05-04T21:46:48.4406613Z cloudbuild.yaml
2022-05-04T21:46:48.4406910Z dist
2022-05-04T21:46:48.4407520Z gha-creds-c430a1e973f97a30.json
2022-05-04T21:46:48.4407912Z hello_world
2022-05-04T21:46:48.4408259Z requirements.txt
2022-05-04T21:46:48.4408779Z setup.cfg
2022-05-04T21:46:48.4409031Z setup.py
2022-05-04T21:46:48.4409255Z src
2022-05-04T21:46:48.4431973Z ##[group]Run gcloud config set artifacts/repository $REPOSITORY_NAME
2022-05-04T21:46:48.4432532Z �[36;1mgcloud config set artifacts/repository $REPOSITORY_NAME�[0m
2022-05-04T21:46:48.4432918Z �[36;1mgcloud config set artifacts/location $REGION�[0m
2022-05-04T21:46:48.4433271Z �[36;1mgcloud config set account $SERVICE_ACCOUNT�[0m
2022-05-04T21:46:48.4433553Z �[36;1m�[0m
2022-05-04T21:46:48.4433957Z �[36;1mgcloud auth activate-service-account $SERVICE_ACCOUNT --key-file=$GOOGLE_GHA_CREDS_PATH --project=$PROJECT�[0m
2022-05-04T21:46:48.4434346Z �[36;1m�[0m
2022-05-04T21:46:48.4434647Z �[36;1mgcloud artifacts print-settings python > ~/.pypirc�[0m
2022-05-04T21:46:48.4434995Z �[36;1mmkdir -p ~/.config/pip/�[0m
2022-05-04T21:46:48.4435309Z �[36;1mcp ~/.pypirc ~/.config/pip/pip.conf�[0m
2022-05-04T21:46:48.4435581Z �[36;1m�[0m
2022-05-04T21:46:48.4435996Z �[36;1mpython -m twine upload --repository_url https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY_NAME/ dist/*�[0m
2022-05-04T21:46:48.4482899Z shell: /usr/bin/bash -e {0}
2022-05-04T21:46:48.4483188Z env:
2022-05-04T21:46:48.4483486Z   REPOSITORY_NAME: ***
2022-05-04T21:46:48.4483927Z   SERVICE_ACCOUNT: ***
2022-05-04T21:46:48.4484201Z   PROJECT: ***
2022-05-04T21:46:48.4484470Z   REGION: ***
2022-05-04T21:46:48.4484791Z   PACKAGE_NAME: ***
2022-05-04T21:46:48.4485126Z   CLOUDSDK_METRICS_ENVIRONMENT: github-actions-setup-gcloud
2022-05-04T21:46:48.4485800Z   CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE: /home/runner/work/my-repo/my-repo/gha-creds-c430a1e973f97a30.json
2022-05-04T21:46:48.4486539Z   GOOGLE_APPLICATION_CREDENTIALS: /home/runner/work/my-repo/my-repo/gha-creds-c430a1e973f97a30.json
2022-05-04T21:46:48.4487254Z   GOOGLE_GHA_CREDS_PATH: /home/runner/work/my-repo/my-repo/gha-creds-c430a1e973f97a30.json
2022-05-04T21:46:48.4487753Z   CLOUDSDK_CORE_PROJECT: ***
2022-05-04T21:46:48.4488052Z   CLOUDSDK_PROJECT: ***
2022-05-04T21:46:48.4488336Z   GCLOUD_PROJECT: ***
2022-05-04T21:46:48.4488627Z   GCP_PROJECT: ***
2022-05-04T21:46:48.4488906Z   GOOGLE_CLOUD_PROJECT: ***
2022-05-04T21:46:48.4489234Z   pythonLocation: /opt/hostedtoolcache/Python/3.8.12/x64
2022-05-04T21:46:48.4489613Z   LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.12/x64/lib
2022-05-04T21:46:48.4489919Z ##[endgroup]
2022-05-04T21:46:50.0769179Z Updated property [artifacts/repository].
2022-05-04T21:46:50.9260073Z Updated property [artifacts/location].
2022-05-04T21:46:51.5204731Z Updated property [core/account].
2022-05-04T21:46:52.1013750Z ERROR: gcloud crashed (ValueError): No key could be detected.
2022-05-04T21:46:52.1014536Z 
2022-05-04T21:46:52.1015000Z If you would like to report this issue, please run the following command:
2022-05-04T21:46:52.1015639Z   gcloud feedback
2022-05-04T21:46:52.1016008Z 
2022-05-04T21:46:52.1016739Z To check gcloud for common problems, please run the following command:
2022-05-04T21:46:52.1017423Z   gcloud info --run-diagnostics
2022-05-04T21:46:52.1804017Z ##[error]Process completed with exit code 1.
2022-05-04T21:46:52.1876529Z Post job cleanup.
2022-05-04T21:46:52.2546623Z Removed exported credentials at "/home/runner/work/my-repo/my-repo/gha-creds-c430a1e973f97a30.json".
2022-05-04T21:46:52.2631250Z Post job cleanup.
2022-05-04T21:46:52.3069488Z Skipping credential cleanup - "export_default_credentials" is false.
2022-05-04T21:46:52.3137009Z Post job cleanup.
2022-05-04T21:46:52.4374220Z [command]/usr/bin/git version
2022-05-04T21:46:52.4423095Z git version 2.36.0
2022-05-04T21:46:52.4467153Z Temporarily overriding HOME='/home/runner/work/_temp/965d233e-b9e1-4e02-a773-a729eb5e394b' before making global git config changes
2022-05-04T21:46:52.4468197Z Adding repository directory to the temporary git global config as a safe directory
2022-05-04T21:46:52.4473023Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/my-repo/my-repo
2022-05-04T21:46:52.4513481Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2022-05-04T21:46:52.4550338Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :
2022-05-04T21:46:52.4786417Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2022-05-04T21:46:52.4853040Z http.https://github.com/.extraheader
2022-05-04T21:46:52.4864415Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
2022-05-04T21:46:52.4905166Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :
2022-05-04T21:46:52.5375141Z Cleaning up orphan processes

Additional information

No response

sethvargo wrote this answer on 2022-05-05

Hi @luisarodriguees

You need to auth before setup-gcloud, so that the setup-gcloud step can pull in the authentication from the previous step.

luisarodriguees wrote this answer on 2022-05-05

Thank you @sethvargo.
I've just tested it but unsuccessly.

My new yaml file:

name: Python package

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

jobs:
  build:
    env:
        
        REPOSITORY_NAME: '${{ secrets.GCP_REPOSITORY_NAME }}'
        SERVICE_ACCOUNT: '${{ secrets.GCP_SERVICE_ACCOUNT }}'
        PROJECT: '${{ secrets.GCP_PROJECT }}'
        REGION: '${{ secrets.GCP_REGION }}'
        PACKAGE_NAME: '${{ secrets.GCP_PACKAGE_NAME }}'

    runs-on: ubuntu-latest
    strategy:
      max-parallel: 4
      fail-fast: false
      matrix:
        python-version: ["3.8"]
      
    steps:
    - uses: actions/[email protected]

    - id: 'auth'
      name: Authenticate to Google Cloud
      uses: google-github-actions/[email protected]
      with: 
        credentials_json: '${{ secrets.GCP_PRIVATE_KEY }}'
    
        # Setup gcloud CLI
    - name: Set up Cloud SDK
      uses: google-github-actions/[email protected]
    
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/[email protected]
      with:
        python-version: ${{ matrix.python-version }}

    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        python -m pip install flake8 pytest
        python -m pip install setuptools wheel twine keyrings.google-artifactregistry-auth
        if [ -f requirements.txt ]; then pip install -r requirements.txt; fi

    - name: Lint with flake8
      run: |
        # stop the build if there are Python syntax errors or undefined names
        flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
        # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
        flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics

    - name: Build Package
      run: |
        python setup.py sdist bdist_wheel
      
    - name: List files
      run: |
        ls
      
    - name: Upload to Artifact Registry
      run: |
        gcloud config set artifacts/repository $REPOSITORY_NAME
        gcloud config set artifacts/location $REGION
        gcloud config set account $SERVICE_ACCOUNT
        
        gcloud auth activate-service-account $SERVICE_ACCOUNT --key-file=$GOOGLE_GHA_CREDS_PATH --project=$PROJECT
        
        gcloud artifacts print-settings python > ~/.pypirc
        mkdir -p ~/.config/pip/
        cp ~/.pypirc ~/.config/pip/pip.conf
        
        python -m twine upload --repository_url https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY_NAME/ dist/*

And it's followng error:


Run google-github-actions/[email protected]

/usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /home/runner/work/_temp/e87869b2-9be9-4b4f-82d8-bdc301499cac -f /home/runner/work/_temp/bb834d5c-2804-495d-b1b9-38b521d1bc9e
Error: google-github-actions/setup-gcloud failed with: failed to execute command `gcloud --quiet auth activate-service-account *** --key-file -`: ERROR: gcloud crashed (ValueError): No key could be detected.
sethvargo wrote this answer on 2022-05-05

Hi @sethvargo

Could you share the debug output? Is this a PR from a fork?

luisarodriguees wrote this answer on 2022-05-05

@sethvargo Actually it's directly from push on branch main.

Here's the debug output:

2022-05-05T15:17:18.6905059Z Requested labels: ubuntu-latest
2022-05-05T15:17:18.6905124Z Job defined at: luisarodriguees/my-repo/.github/workflows/[email protected]/heads/main
2022-05-05T15:17:18.6905144Z Waiting for a runner to pick up this job...
2022-05-05T15:17:19.6328935Z Job is waiting for a hosted runner to come online.
2022-05-05T15:17:24.3791273Z Job is about to start running on the hosted runner: Hosted Agent (hosted)
2022-05-05T15:17:28.6969613Z Current runner version: '2.291.1'
2022-05-05T15:17:28.7003086Z ##[group]Operating System
2022-05-05T15:17:28.7003725Z Ubuntu
2022-05-05T15:17:28.7004154Z 20.04.4
2022-05-05T15:17:28.7004481Z LTS
2022-05-05T15:17:28.7004937Z ##[endgroup]
2022-05-05T15:17:28.7005348Z ##[group]Virtual Environment
2022-05-05T15:17:28.7005822Z Environment: ubuntu-20.04
2022-05-05T15:17:28.7006217Z Version: 20220503.1
2022-05-05T15:17:28.7006880Z Included Software: https://github.com/actions/virtual-environments/blob/ubuntu20/20220503.1/images/linux/Ubuntu2004-Readme.md
2022-05-05T15:17:28.7007655Z Image Release: https://github.com/actions/virtual-environments/releases/tag/ubuntu20%2F20220503.1
2022-05-05T15:17:28.7008177Z ##[endgroup]
2022-05-05T15:17:28.7008580Z ##[group]Virtual Environment Provisioner
2022-05-05T15:17:28.7009013Z 1.0.0.0-main-20220421-1
2022-05-05T15:17:28.7009402Z ##[endgroup]
2022-05-05T15:17:28.7010501Z ##[group]GITHUB_TOKEN Permissions
2022-05-05T15:17:28.7011225Z Actions: write
2022-05-05T15:17:28.7011812Z Checks: write
2022-05-05T15:17:28.7012244Z Contents: write
2022-05-05T15:17:28.7012624Z Deployments: write
2022-05-05T15:17:28.7013016Z Discussions: write
2022-05-05T15:17:28.7013384Z Issues: write
2022-05-05T15:17:28.7013818Z Metadata: read
2022-05-05T15:17:28.7014174Z Packages: write
2022-05-05T15:17:28.7014557Z Pages: write
2022-05-05T15:17:28.7014923Z PullRequests: write
2022-05-05T15:17:28.7015337Z RepositoryProjects: write
2022-05-05T15:17:28.7015745Z SecurityEvents: write
2022-05-05T15:17:28.7016153Z Statuses: write
2022-05-05T15:17:28.7016801Z ##[endgroup]
2022-05-05T15:17:28.7020644Z Secret source: Actions
2022-05-05T15:17:28.7021329Z Prepare workflow directory
2022-05-05T15:17:28.8194265Z Prepare all required actions
2022-05-05T15:17:28.8379518Z Getting action download info
2022-05-05T15:17:29.0411394Z Download action repository 'actions/[email protected]' (SHA:2541b1294d2704b0964813337f33b291d3f8596b)
2022-05-05T15:17:29.3364186Z Download action repository 'google-github-actions/[email protected]' (SHA:b258a9f230b36c9fa86dfaa43d1906bd76399edb)
2022-05-05T15:17:29.4699493Z Download action repository 'google-github-actions/[email protected]' (SHA:877d4953d2c70a0ba7ef3290ae968eb24af233bb)
2022-05-05T15:17:29.6335342Z Download action repository 'actions/[email protected]' (SHA:98f2ad02fd48d057ee3b4d4f66525b231c3e52b6)
2022-05-05T15:17:30.0355487Z ##[group]Run actions/[email protected]
2022-05-05T15:17:30.0355836Z with:
2022-05-05T15:17:30.0356199Z   repository: luisarodriguees/my-repo
2022-05-05T15:17:30.0356782Z   token: ***
2022-05-05T15:17:30.0357031Z   ssh-strict: true
2022-05-05T15:17:30.0357305Z   persist-credentials: true
2022-05-05T15:17:30.0357579Z   clean: true
2022-05-05T15:17:30.0357818Z   fetch-depth: 1
2022-05-05T15:17:30.0358053Z   lfs: false
2022-05-05T15:17:30.0358307Z   submodules: false
2022-05-05T15:17:30.0358574Z   set-safe-directory: true
2022-05-05T15:17:30.0358840Z env:
2022-05-05T15:17:30.0359139Z   REPOSITORY_NAME: ***
2022-05-05T15:17:30.0359577Z   SERVICE_ACCOUNT: ***
2022-05-05T15:17:30.0359869Z   PROJECT: ***
2022-05-05T15:17:30.0360167Z   REGION: ***
2022-05-05T15:17:30.0360485Z   PACKAGE_NAME: ***
2022-05-05T15:17:30.0360732Z ##[endgroup]
2022-05-05T15:17:30.3442278Z Syncing repository: luisarodriguees/my-repo
2022-05-05T15:17:30.3444169Z ##[group]Getting Git version info
2022-05-05T15:17:30.3444884Z Working directory is '/home/runner/work/my-repo/my-repo'
2022-05-05T15:17:30.3445587Z [command]/usr/bin/git version
2022-05-05T15:17:30.3615276Z git version 2.36.0
2022-05-05T15:17:30.3635367Z ##[endgroup]
2022-05-05T15:17:30.3654622Z Temporarily overriding HOME='/home/runner/work/_temp/bd9e2a5c-6c1a-47d8-96b9-78ec6660641b' before making global git config changes
2022-05-05T15:17:30.3656150Z Adding repository directory to the temporary git global config as a safe directory
2022-05-05T15:17:30.3661939Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/my-repo/my-repo
2022-05-05T15:17:30.3705310Z Deleting the contents of '/home/runner/work/my-repo/my-repo'
2022-05-05T15:17:30.3709670Z ##[group]Initializing the repository
2022-05-05T15:17:30.3713936Z [command]/usr/bin/git init /home/runner/work/my-repo/my-repo
2022-05-05T15:17:30.3785628Z hint: Using 'master' as the name for the initial branch. This default branch name
2022-05-05T15:17:30.3786179Z hint: is subject to change. To configure the initial branch name to use in all
2022-05-05T15:17:30.3786902Z hint: of your new repositories, which will suppress this warning, call:
2022-05-05T15:17:30.3787280Z hint: 
2022-05-05T15:17:30.3787694Z hint: 	git config --global init.defaultBranch <name>
2022-05-05T15:17:30.3788200Z hint: 
2022-05-05T15:17:30.3788728Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
2022-05-05T15:17:30.3789361Z hint: 'development'. The just-created branch can be renamed via this command:
2022-05-05T15:17:30.3789801Z hint: 
2022-05-05T15:17:30.3790139Z hint: 	git branch -m <name>
2022-05-05T15:17:30.3800333Z Initialized empty Git repository in /home/runner/work/my-repo/my-repo/.git/
2022-05-05T15:17:30.3808819Z [command]/usr/bin/git remote add origin https://github.com/luisarodriguees/my-repo
2022-05-05T15:17:30.3852817Z ##[endgroup]
2022-05-05T15:17:30.3853668Z ##[group]Disabling automatic garbage collection
2022-05-05T15:17:30.3856813Z [command]/usr/bin/git config --local gc.auto 0
2022-05-05T15:17:30.3890965Z ##[endgroup]
2022-05-05T15:17:30.3891827Z ##[group]Setting up auth
2022-05-05T15:17:30.3898273Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2022-05-05T15:17:30.3934465Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :
2022-05-05T15:17:30.4292077Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2022-05-05T15:17:30.4328065Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :
2022-05-05T15:17:30.4566409Z [command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic ***
2022-05-05T15:17:30.4600509Z ##[endgroup]
2022-05-05T15:17:30.4601439Z ##[group]Fetching the repository
2022-05-05T15:17:30.4610021Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +3dafd40741a05084f0d6d32c61d54d4b93837926:refs/remotes/origin/main
2022-05-05T15:17:30.7554521Z remote: Enumerating objects: 18, done.        
2022-05-05T15:17:30.7604493Z remote: Counting objects:   5% (1/18)        
2022-05-05T15:17:30.7604872Z remote: Counting objects:  11% (2/18)        
2022-05-05T15:17:30.7605214Z remote: Counting objects:  16% (3/18)        
2022-05-05T15:17:30.7605521Z remote: Counting objects:  22% (4/18)        
2022-05-05T15:17:30.7605845Z remote: Counting objects:  27% (5/18)        
2022-05-05T15:17:30.7606162Z remote: Counting objects:  33% (6/18)        
2022-05-05T15:17:30.7606477Z remote: Counting objects:  38% (7/18)        
2022-05-05T15:17:30.7606781Z remote: Counting objects:  44% (8/18)        
2022-05-05T15:17:30.7607084Z remote: Counting objects:  50% (9/18)        
2022-05-05T15:17:30.7607390Z remote: Counting objects:  55% (10/18)        
2022-05-05T15:17:30.7607696Z remote: Counting objects:  61% (11/18)        
2022-05-05T15:17:30.7608005Z remote: Counting objects:  66% (12/18)        
2022-05-05T15:17:30.7608328Z remote: Counting objects:  72% (13/18)        
2022-05-05T15:17:30.7608628Z remote: Counting objects:  77% (14/18)        
2022-05-05T15:17:30.7608928Z remote: Counting objects:  83% (15/18)        
2022-05-05T15:17:30.7609479Z remote: Counting objects:  88% (16/18)        
2022-05-05T15:17:30.7609781Z remote: Counting objects:  94% (17/18)        
2022-05-05T15:17:30.7610080Z remote: Counting objects: 100% (18/18)        
2022-05-05T15:17:30.7610397Z remote: Counting objects: 100% (18/18), done.        
2022-05-05T15:17:30.7610753Z remote: Compressing objects:   7% (1/13)        
2022-05-05T15:17:30.7611078Z remote: Compressing objects:  15% (2/13)        
2022-05-05T15:17:30.7611396Z remote: Compressing objects:  23% (3/13)        
2022-05-05T15:17:30.7611708Z remote: Compressing objects:  30% (4/13)        
2022-05-05T15:17:30.7612025Z remote: Compressing objects:  38% (5/13)        
2022-05-05T15:17:30.7612336Z remote: Compressing objects:  46% (6/13)        
2022-05-05T15:17:30.7612646Z remote: Compressing objects:  53% (7/13)        
2022-05-05T15:17:30.7613463Z remote: Compressing objects:  61% (8/13)        
2022-05-05T15:17:30.7613892Z remote: Compressing objects:  69% (9/13)        
2022-05-05T15:17:30.7614252Z remote: Compressing objects:  76% (10/13)        
2022-05-05T15:17:30.7614575Z remote: Compressing objects:  84% (11/13)        
2022-05-05T15:17:30.7614893Z remote: Compressing objects:  92% (12/13)        
2022-05-05T15:17:30.7615211Z remote: Compressing objects: 100% (13/13)        
2022-05-05T15:17:30.7615558Z remote: Compressing objects: 100% (13/13), done.        
2022-05-05T15:17:30.7616228Z remote: Total 18 (delta 0), reused 11 (delta 0), pack-reused 0        
2022-05-05T15:17:30.7702803Z From https://github.com/luisarodriguees/my-repo
2022-05-05T15:17:30.7703425Z  * [new ref]         3dafd40741a05084f0d6d32c61d54d4b93837926 -> origin/main
2022-05-05T15:17:30.7733274Z ##[endgroup]
2022-05-05T15:17:30.7733778Z ##[group]Determining the checkout info
2022-05-05T15:17:30.7735330Z ##[endgroup]
2022-05-05T15:17:30.7735911Z ##[group]Checking out the ref
2022-05-05T15:17:30.7740225Z [command]/usr/bin/git checkout --progress --force -B main refs/remotes/origin/main
2022-05-05T15:17:30.7806634Z Switched to a new branch 'main'
2022-05-05T15:17:30.7811458Z branch 'main' set up to track 'origin/main'.
2022-05-05T15:17:30.7828505Z ##[endgroup]
2022-05-05T15:17:30.7870874Z [command]/usr/bin/git log -1 --format='%H'
2022-05-05T15:17:30.7902951Z '3dafd40741a05084f0d6d32c61d54d4b93837926'
2022-05-05T15:17:30.8234435Z ##[group]Run google-github-actions/[email protected]
2022-05-05T15:17:30.8234752Z with:
2022-05-05T15:17:30.8240757Z   credentials_json: ***
2022-05-05T15:17:30.8241043Z   create_credentials_file: true
2022-05-05T15:17:30.8241349Z   export_environment_variables: true
2022-05-05T15:17:30.8241663Z   cleanup_credentials: true
2022-05-05T15:17:30.8241949Z   access_token_lifetime: 3600s
2022-05-05T15:17:30.8242369Z   access_token_scopes: https://www.googleapis.com/auth/cloud-platform
2022-05-05T15:17:30.8242730Z   id_token_include_email: false
2022-05-05T15:17:30.8242976Z env:
2022-05-05T15:17:30.8243243Z   REPOSITORY_NAME: ***
2022-05-05T15:17:30.8243678Z   SERVICE_ACCOUNT: ***
2022-05-05T15:17:30.8243984Z   PROJECT: ***
2022-05-05T15:17:30.8244294Z   REGION: ***
2022-05-05T15:17:30.8244622Z   PACKAGE_NAME: ***
2022-05-05T15:17:30.8244861Z ##[endgroup]
2022-05-05T15:17:30.8960859Z Created credentials file at "/home/runner/work/my-repo/my-repo/gha-creds-a848c2ad16f1b6c8.json"
2022-05-05T15:17:30.8961821Z 
2022-05-05T15:17:30.9000088Z 
2022-05-05T15:17:30.9090773Z ##[group]Run google-github-actions/[email protected]
2022-05-05T15:17:30.9091197Z with:
2022-05-05T15:17:30.9091538Z   version: latest
2022-05-05T15:17:30.9091879Z   export_default_credentials: false
2022-05-05T15:17:30.9092252Z   cleanup_credentials: true
2022-05-05T15:17:30.9092594Z env:
2022-05-05T15:17:30.9093104Z   REPOSITORY_NAME: ***
2022-05-05T15:17:30.9093640Z   SERVICE_ACCOUNT: ***
2022-05-05T15:17:30.9094016Z   PROJECT: ***
2022-05-05T15:17:30.9094410Z   REGION: ***
2022-05-05T15:17:30.9094853Z   PACKAGE_NAME: ***
2022-05-05T15:17:30.9095452Z   CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE: /home/runner/work/my-repo/my-repo/gha-creds-a848c2ad16f1b6c8.json
2022-05-05T15:17:30.9096420Z   GOOGLE_APPLICATION_CREDENTIALS: /home/runner/work/my-repo/my-repo/gha-creds-a848c2ad16f1b6c8.json
2022-05-05T15:17:30.9097302Z   GOOGLE_GHA_CREDS_PATH: /home/runner/work/my-repo/my-repo/gha-creds-a848c2ad16f1b6c8.json
2022-05-05T15:17:30.9097889Z   CLOUDSDK_CORE_PROJECT: ***
2022-05-05T15:17:30.9098369Z   CLOUDSDK_PROJECT: ***
2022-05-05T15:17:30.9098735Z   GCLOUD_PROJECT: ***
2022-05-05T15:17:30.9099101Z   GCP_PROJECT: ***
2022-05-05T15:17:30.9099466Z   GOOGLE_CLOUD_PROJECT: ***
2022-05-05T15:17:30.9099813Z ##[endgroup]
2022-05-05T15:17:31.8549393Z [command]/usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /home/runner/work/_temp/522cb50d-086f-4660-9f44-33cafd7198f5 -f /home/runner/work/_temp/89eeb00f-c1cd-4a88-803d-9e3a18563b87
2022-05-05T15:17:44.2029850Z ##[error]google-github-actions/setup-gcloud failed with: failed to execute command `gcloud --quiet auth activate-service-account *** --key-file -`: ERROR: gcloud crashed (ValueError): No key could be detected.

If you would like to report this issue, please run the following command:
  gcloud feedback

To check gcloud for common problems, please run the following command:
  gcloud info --run-diagnostics
2022-05-05T15:17:44.2309466Z Post job cleanup.
2022-05-05T15:17:44.2762360Z Skipping credential cleanup - "export_default_credentials" is false.
2022-05-05T15:17:44.2838379Z Post job cleanup.
2022-05-05T15:17:44.3475353Z Removed exported credentials at "/home/runner/work/my-repo/my-repo/gha-creds-a848c2ad16f1b6c8.json".
2022-05-05T15:17:44.3567007Z Post job cleanup.
2022-05-05T15:17:44.4804774Z [command]/usr/bin/git version
2022-05-05T15:17:44.4859277Z git version 2.36.0
2022-05-05T15:17:44.4910283Z Temporarily overriding HOME='/home/runner/work/_temp/984866b9-3b47-4acc-bc86-97d48bf00bca' before making global git config changes
2022-05-05T15:17:44.4913171Z Adding repository directory to the temporary git global config as a safe directory
2022-05-05T15:17:44.4917051Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/my-repo/my-repo
2022-05-05T15:17:44.4959896Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2022-05-05T15:17:44.4997613Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :
2022-05-05T15:17:44.5248382Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2022-05-05T15:17:44.5275768Z http.https://github.com/.extraheader
2022-05-05T15:17:44.5286940Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
2022-05-05T15:17:44.5323321Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :
2022-05-05T15:17:44.5773921Z Cleaning up orphan processes
sethvargo wrote this answer on 2022-05-05

Hi @luisarodriguees

Are you sure the secret is named GCP_PRIVATE_KEY and the value is an exported service account key JSON file?

luisarodriguees wrote this answer on 2022-05-05

Hello again, @sethvargo!

Yes, pretty sure:

image

And the json file looks like this:

{
"type": "service_account",
"project_id": "xxxxxxx",
"private_key_id": "xxxxxx",
"private_key": "-----BEGIN PRIVATE KEY-----\n\n-----END PRIVATE KEY-----\n",
"client_email": "xxxxxxxx",
"client_id": "xxxxx",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "xxxxxxxxx"
}

sethvargo wrote this answer on 2022-05-05

Can you try adding token_format: 'access_token' to the auth step?

uses: 'google-github-actions/[email protected]'
with:
  token_format: 'access_token'

We have (passing) tests for this use case, and I just re-ran the tests and they are still passing.

luisarodriguees wrote this answer on 2022-05-05

@sethvargo It worked partially, since now i got other error message:

Run google-github-actions/[email protected]
Created credentials file at "/home/runner/work/my-repo/my-repo/gha-creds-85df61a68853ecdd.json"

Error: google-github-actions/auth failed with: failed to sign auth token using ***: error:0909006C:PEM routines:get_name:no start line
sethvargo wrote this answer on 2022-05-05

Does the value for your secret at "private_key" actually contain key material?

luisarodriguees wrote this answer on 2022-05-05

@sethvargo yes, and when i run the same command locally, it works:

Captura de tela 2022-05-05 162923

sethvargo wrote this answer on 2022-05-05

Hi @luisarodriguees

Can you try overwriting the GitHub secret value, just to be sure? I'm not really sure how to best debug this, since the error coming back is clearly unhappy with the private key material.

luisarodriguees wrote this answer on 2022-05-06

Hi @sethvargo,

I've updated my Github secret value a couple of times, copying it the way it's exported from gcp, and i even tried to edit its content, removing '\n' occurrencies.. no success.

sethvargo wrote this answer on 2022-05-06

Hi @luisarodriguees

All the information I'm finding points to an invalid private key. Please do not edit the contents or remove the newlines - that would make the key invalid. Make sure you copy the value exactly as it appears in the file.

It looks like you might be using Windows with WSL? Perhaps this is a line-endings issue (\r\n vs \n)?

luisarodriguees wrote this answer on 2022-05-06

Yes @sethvargo , I used WSL to authenticate to gcloud, but to open and copy the json file I use my Windows native Notepad++ or my VSCode (I've tried both, to ensure it's not an encoding problem).

sethvargo wrote this answer on 2022-05-06

Hmm then unfortunately I'm out of ideas 😦. The logs are pointing to an invalid or improperly formatted key.

luisarodriguees wrote this answer on 2022-05-10

Hello @sethvargo, after a few more attempts I was finally able to authenticate using setup_gcloud.
Thank you for your help!

jaiprasad266 wrote this answer on 2022-09-18

this issue was helpful , just follow one of the examples from the below link.
I used the service account and generated a key and passed the value to credentials_json.
https://github.com/google-github-actions/setup-gcloud/blob/main/example-workflows/cloud-run/cloud-run.yml

More Details About Repo
Owner Name google-github-actions
Repo Name setup-gcloud
Full Name google-github-actions/setup-gcloud
Language TypeScript
Created Date 2019-11-05
Updated Date 2023-03-23
Star Count 1505
Watcher Count 65
Fork Count 548
Issue Count 11

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date