Skip to content

Commit 93ea0b3

Browse files
committed
Avoid triggering zizmor ref-confusion
1 parent 7c8485f commit 93ea0b3

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
1010

1111
## [Unreleased]
1212

13+
- Avoid triggering [zizmor ref-confusion](https://docs.zizmor.sh/audits/#ref-confusion) when using this action in form of `uses: taiki-e/install-action@v2` or `uses: taiki-e/install-action@<tool_name>`.
14+
1315
## [2.68.23] - 2026-03-08
1416

1517
- Update `zizmor@latest` to 1.23.0.

tools/publish.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,9 @@ retry git push origin refs/heads/main
121121
retry git push origin refs/tags/"${tag}"
122122

123123
major_version_tag="v${version%%.*}"
124-
git branch "${major_version_tag}"
124+
git branch "releases/${major_version_tag}"
125125
git tag -f "${major_version_tag}"
126-
refs=("refs/heads/${major_version_tag}" "+refs/tags/${major_version_tag}")
126+
refs=("refs/heads/releases/${major_version_tag}" "+refs/tags/${major_version_tag}")
127127

128128
tools=()
129129
for tool in tools/codegen/base/*.json; do
@@ -142,20 +142,22 @@ tools+=(
142142
# Non-manifest-based tools.
143143
tools+=(valgrind)
144144

145+
branches=()
145146
for tool in "${tools[@]}"; do
146-
git checkout -b "${tool}"
147+
git checkout -b "releases/${tool}"
147148
sed -E "${in_place[@]}" action.yml \
148149
-e "s/required: true/required: false/g" \
149150
-e "s/# default: #publish:tool/default: ${tool}/g"
150151
git add action.yml
151152
git commit -m "${tool}"
152153
git tag -f "${tool}"
153154
git checkout main
154-
refs+=("+refs/heads/${tool}" "+refs/tags/${tool}")
155+
refs+=("+refs/heads/releases/${tool}" "+refs/tags/${tool}")
156+
branches+=("releases/${tool}")
155157
done
156158
retry git push origin --atomic "${refs[@]}"
157-
git branch -d "${major_version_tag}"
158-
git branch -D "${tools[@]}"
159+
git branch -d "releases/${major_version_tag}"
160+
git branch -D "${branches[@]}"
159161

160162
schema_workspace=/tmp/workspace
161163
rm -rf -- "${schema_workspace}"

0 commit comments

Comments
 (0)