Unable to resolve `google-github-actions/[email protected]`

This issue has been tracked since 2021-12-22.

TL;DR

Hi!

Our pipelines broke because of this change, we assume is just switching from master to main. However, we wanted to ask if this change is final? And why release this change 2 days before Christmas? :(

This broke all our pipelines and really didn't wanted to update everything given the holidays. Perhaps there's an easy fix we can apply instead of revisiting all of them? Thanks in advance!

Expected behavior

To setup the action as normally.

Observed behavior

The branch name has changed from master to main so it can't be loaded.

Action YAML

- name: Set GCP service account
        uses: google-github-actions/[email protected]
        with:
          service_account_key: ${{ secrets.GCP_SA_KEY }}
          export_default_credentials: true


### Additional information

This change impacts all our workflows (90+), if this change is a must, we can do it, but just to corroborate with you guys that it is indeed the expected approach.
sethvargo wrote this answer on 2021-12-22

According to https://github.blog/changelog/2020-07-22-github-actions-better-support-for-alternative-default-branch-names/, the rename should have been a non-breaking change. We'll revert this.

sethvargo wrote this answer on 2021-12-22

However, we do recommend pinning to @v0 or a specific version.

fatih wrote this answer on 2021-12-22

This change also just broke our pipeline with the error:

Error: Unable to resolve action `google-github-actions/[email protected]`, unable to find version `master`

We fixed it by changing the branch to main.

sethvargo wrote this answer on 2021-12-22

@fatih we just reverted the change back to master to prevent existing workflows from breaking. We recommend pinning to @v0 or a specific tag version, but we also didn't intend to introduce a breaking change with this. GitHub claimed renaming the branch would automatically handle redirects, but that appears to be inaccurate 😦

humbertowoody wrote this answer on 2021-12-22

Thank you very much @sethvargo! We'll wait for the revert; we were also aware of redirects and sorry for the inaccurate title.

sethvargo wrote this answer on 2021-12-22

The revert is done

sethvargo wrote this answer on 2021-12-22

@humbertowoody the revert is done. I would recommend scheduling time in the new year to either:

  1. Pin to a specific version (@v0.3.0) or a floating pointer (@v0).

  2. Switch to google-github-actions/auth if you're just performing authentication and not actually using the gcloud CLI.

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