nodejs.dev
nodejs.dev copied to clipboard
warning error: cleanup staging deploy CI/CD
Description
Everytime a PR is created the cleanup staging deploy yml file produces a warning
"service_account_key" has been deprecated. Please switch to using google-github-actions/auth which supports both Workload Identity Federation and Service Account Key JSON authentication. For more details, see https://github.com/google-github-actions/setup-gcloud#authorization
Steps to reproduce
Create any PR and the warning will show.
Expected result
There should be no warning messages during CI/CD.
Actual result

The "service_account_key" has been deprecated so this will need to be updated following https://github.com/google-github-actions/setup-gcloud#authorization
Environment
- OS Version: Win11
- Browser Version: Chrome Latest
I am unsure how to go about this so others are welcome to fix this
File that needs to be changed is here:
https://github.com/nodejs/nodejs.dev/blob/0b3901550fdece75d7d573f6776b66788d0261de/.github/workflows/cleanup-staging.yml
@MylesBorins looks like this might be the one that would be supported for the current setup https://github.com/google-github-actions/setup-gcloud#service-account-key-json. I guess it would be combining the two existing keys into a JSON file, but it's pretty light on details
I guess you'd have to first use the auth action, then the setup-gcloud after that