bumped auth and setup actions to v1
I use json service account
right after these actions I run gsutil cp
401 Anonymous caller does not have storage.objects.get access to the Google Cloud Storage object.
works fine with v1
should run gsutil cp
as authenticated caller
runs gsutil cp
as anonymous caller
- name: Authenticate to gcloud
uses: "google-github-actions/[email protected]"
with:
credentials_json: "${{ secrets.GCP_SERVICE_ACCOUNT }}"
- uses: 'google-github-actions/[email protected]'
- name: Decrypt
run: yarn decrypt --${{ env.DEPLOYMENT_ENVIRONMENT }} - this one uses gsutil cp
- name: Deploy
uses: 'google-github-actions/[email protected]'
with:
project_id: ${{ secrets.PROJECT_ID }}
deliverables: ${{ secrets.APP_CONFIG }}
No response
No response
Hi there @OleksiiKachan
Thank you for opening an issue. Our team will triage this as soon as we can. Please take a moment to review the troubleshooting steps which lists common error messages and their resolution steps. Having the debug logs would be super helpful, especially if you can get logs as v0
vs v1
.
I ran into the same problem. It's not logging in an account. gcloud auth list
returns empty, and gcloud info
shows no account set. I fixed it in my workflows by adding a step after auth and gcloud setup that looks like this:
- name: Fix Auth
run: yes | gcloud auth login --cred-file="$GOOGLE_APPLICATION_CREDENTIALS"
@verbanicm FYI. We're not seeing this in our integration tests, but I'll try to reproduce tomorrow. If someone could get debug logs (especially compared to a working version), that'd be very helpful.
@sethvargo works for me now. thanks
Owner Name | google-github-actions |
Repo Name | auth |
Full Name | google-github-actions/auth |
Language | TypeScript |
Created Date | 2021-09-16 |
Updated Date | 2023-03-24 |
Star Count | 573 |
Watcher Count | 16 |
Fork Count | 116 |
Issue Count | 3 |
Issue Title | Created Date | Updated Date |
---|