I'm using this action for running GCP CLI - for starting and stopping VMs. I'd like to suppress this warning but I don't see a way to do that without checkout my repo.
Warning I get:
The "create_credentials_file" option is true, but the current GitHub workspace is empty. Did you forget to use "actions/checkout" before this step? If you do not intend to share authentication with future steps in this job, set "create_credentials_file" to false.
My job YAML:
- name: Authenticate to Google Cloud
uses: google-github-actions/[email protected]
with:
credentials_json: '${{ secrets.GCP_SA_KEY }}'
No response
Hi there @vitalyk-multinarity
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.
There have been a number of issues where users have not used the "actions/checkout" step before the auth
action. This action relies on the creation of that directory to export credentials. Worse, if a user puts "actions/checkout" after our action, it will delete the exported credential.
This is only a warning and does not affect performance. If you really want the warning to go away, you can create an empty file in $GITHUB_WORKSPACE
.
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 |
---|