Skip to content

Commit 9037e10

Browse files
constkclaude
andauthored
fix: dereference astral-sh/setup-uv annotated tag to commit SHA (#40)
The pinned SHA in #9 (e58605a9...) was the tag-object SHA, not the commit SHA. GitHub Actions does not auto-dereference annotated tags at workflow startup, so every run completed in ~0s with conclusion=failure and 0 jobs. Replace with d4b2f3b6... (the commit v5 points to). Update the bump-recipe comment to use `gh api .../commits/<tag>` which always returns the commit SHA whether the tag is lightweight or annotated. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 09ec3ac commit 9037e10

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: CI
22

33
# Action SHAs are pinned, not floating tags. To bump:
4-
# gh api repos/<owner>/<repo>/git/refs/tags/<tag> --jq .object.sha
5-
# and update the comment on the right with the new tag.
4+
# gh api repos/<owner>/<repo>/commits/<tag> --jq .sha
5+
# (use /commits/<tag>, NOT /git/refs/tags/<tag> — annotated tags would
6+
# return the tag-object SHA, which Actions can't resolve.)
7+
# Update the comment on the right with the new tag for traceability.
68

79
on:
810
push:
@@ -16,7 +18,7 @@ jobs:
1618
runs-on: ubuntu-latest
1719
steps:
1820
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
19-
- uses: astral-sh/setup-uv@e58605a9b6da7c637471fab8847a5e5a6b8df081 # v5
21+
- uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5
2022
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
2123
with:
2224
python-version: "3.14"
@@ -29,7 +31,7 @@ jobs:
2931
runs-on: ubuntu-latest
3032
steps:
3133
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
32-
- uses: astral-sh/setup-uv@e58605a9b6da7c637471fab8847a5e5a6b8df081 # v5
34+
- uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5
3335
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
3436
with:
3537
python-version: "3.14"
@@ -43,7 +45,7 @@ jobs:
4345
# FastAPI endpoints. Completes fast so PR authors get quick feedback.
4446
steps:
4547
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
46-
- uses: astral-sh/setup-uv@e58605a9b6da7c637471fab8847a5e5a6b8df081 # v5
48+
- uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5
4749
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
4850
with:
4951
python-version: "3.14"
@@ -58,7 +60,7 @@ jobs:
5860
# when no tests collect.
5961
steps:
6062
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
61-
- uses: astral-sh/setup-uv@e58605a9b6da7c637471fab8847a5e5a6b8df081 # v5
63+
- uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5
6264
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
6365
with:
6466
python-version: "3.14"
@@ -79,7 +81,7 @@ jobs:
7981
# When #17 + #18 ship real source + tests, drop the override here.
8082
steps:
8183
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
82-
- uses: astral-sh/setup-uv@e58605a9b6da7c637471fab8847a5e5a6b8df081 # v5
84+
- uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5
8385
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
8486
with:
8587
python-version: "3.14"
@@ -91,7 +93,7 @@ jobs:
9193
runs-on: ubuntu-latest
9294
steps:
9395
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
94-
- uses: astral-sh/setup-uv@e58605a9b6da7c637471fab8847a5e5a6b8df081 # v5
96+
- uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5
9597
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
9698
with:
9799
python-version: "3.14"
@@ -106,7 +108,7 @@ jobs:
106108
# secret past the first defence layer.
107109
steps:
108110
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
109-
- uses: astral-sh/setup-uv@e58605a9b6da7c637471fab8847a5e5a6b8df081 # v5
111+
- uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5
110112
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
111113
with:
112114
python-version: "3.14"

0 commit comments

Comments
 (0)