ci: fix broken workflows after Zizmor fixes (#38264)

- Backport workflow needs to use the credentials.
- Release workflow can specify the credentials on the command line.
This commit is contained in:
zeertzjq authored and GitHub committed 2026-03-12 08:54:36 +08:00
1 parent 99a0b2f7b8
commit 692f882052
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -16,7 +16,7 @@ jobs:
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
persist-credentials: true
- uses: actions/create-github-app-token@v2
id: app-token
+2 -2
View File
@@ -227,14 +227,14 @@ jobs:
(echo 'SUBJECT=Nvim development (prerelease) build';
echo 'PRERELEASE=--prerelease') >> $GITHUB_ENV
gh release delete nightly --yes || true
git push origin :nightly || true
git push https://${GITHUB_ACTOR}:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY} :nightly || true
- if: env.TAG_NAME != 'nightly'
run: |
(echo 'SUBJECT=Nvim release build';
echo 'PRERELEASE=') >> $GITHUB_ENV
gh release delete stable --yes || true
git push origin :stable || true
git push https://${GITHUB_ACTOR}:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY} :stable || true
- name: Publish release
env: