Skip to content

Commit 62e21fd

Browse files
committed
ci: pin tag workflows to github.sha
Ensure tag-triggered releases checkout the exact commit and avoid git 128 during re-tags.
1 parent 85f49e4 commit 62e21fd

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/release-pypi.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
- uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 0
21+
ref: ${{ github.sha }}
2122

2223
- name: Extract version from tag
2324
id: extract
@@ -80,6 +81,7 @@ jobs:
8081
- uses: actions/checkout@v4
8182
with:
8283
fetch-depth: 0
84+
ref: ${{ github.sha }}
8385

8486
- uses: actions/setup-python@v5
8587
with:
@@ -131,6 +133,7 @@ jobs:
131133
- uses: actions/checkout@v4
132134
with:
133135
fetch-depth: 0
136+
ref: ${{ github.sha }}
134137

135138
- uses: actions/setup-python@v5
136139
with:

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
- uses: actions/checkout@v4
2020
with:
2121
fetch-depth: 0
22+
ref: ${{ github.sha }}
2223

2324
- name: Extract version from tag
2425
id: extract
@@ -102,6 +103,7 @@ jobs:
102103
- uses: actions/checkout@v4
103104
with:
104105
fetch-depth: 0
106+
ref: ${{ github.sha }}
105107

106108
- uses: actions-rust-lang/setup-rust-toolchain@v1
107109
with:
@@ -155,6 +157,7 @@ jobs:
155157
- uses: actions/checkout@v4
156158
with:
157159
fetch-depth: 0
160+
ref: ${{ github.sha }}
158161

159162
- uses: actions/setup-node@v4
160163
with:

0 commit comments

Comments
 (0)