File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 47
47
# Required for GitHub Actions attestation
48
48
attestations : write
49
49
50
- steps :
50
+ steps :
51
+ - name : Checkout
52
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
53
+ with :
54
+ fetch-depth : 0
55
+
56
+ # If the event that triggered the build was an annotated tag (which our
57
+ # tags are supposed to be), actions/checkout has a bug where the tag in
58
+ # question is only a lightweight tag and not a full annotated tag. This
59
+ # command seems to fix it.
60
+ # https://github.com/actions/checkout/issues/290
61
+ - name : Fetch git tags
62
+ run : git fetch --tags --force
63
+
51
64
- name : Authenticate to Google Cloud
52
65
id : gcloud_auth
53
66
uses : google-github-actions/auth@ba79af03959ebeac9769e648f473a284504d9193 # v2.1.10
You can’t perform that action at this time.
0 commit comments