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
2026-03-12 08:54:36 +08:00
committed by GitHub
parent 99a0b2f7b8
commit 692f882052
2 changed files with 3 additions and 3 deletions

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

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: