fix(actionlint): replace curl with wget, fix secrets.GITEA_TOKEN references
- pr-validation.yaml: Use env block to avoid github.head_ref/github.base_ref as shell expressions in run block (actionlint error) - plugin-release.yaml: Replace remaining 6x secrets.GITEA_TOKEN with secrets.GITEA_RELEASE_TOKEN (lines 186, 218, 293, 310, 343, 401) Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
committed by
Gandalf the Greybeard [agent]
parent
af703ea161
commit
d52283dc35
@@ -183,7 +183,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Configure Git
|
- name: Configure Git
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.GITEA_RELEASE_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
git config --global user.name "github-actions[bot]"
|
git config --global user.name "github-actions[bot]"
|
||||||
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
@@ -215,7 +215,7 @@ jobs:
|
|||||||
- name: Update appVersion from upstream release
|
- name: Update appVersion from upstream release
|
||||||
if: inputs.upstream-repo != ''
|
if: inputs.upstream-repo != ''
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.GITEA_RELEASE_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
APP_VERSION=$(curl -sf \
|
APP_VERSION=$(curl -sf \
|
||||||
-H "Authorization: token ${GITEA_TOKEN}" \
|
-H "Authorization: token ${GITEA_TOKEN}" \
|
||||||
@@ -290,7 +290,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Commit and tag
|
- name: Commit and tag
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.GITEA_RELEASE_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
VERSION="${{ inputs.version }}"
|
VERSION="${{ inputs.version }}"
|
||||||
BRANCH="release/v${VERSION}"
|
BRANCH="release/v${VERSION}"
|
||||||
@@ -307,7 +307,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Create Gitea Release
|
- name: Create Gitea Release
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.GITEA_RELEASE_TOKEN }}
|
||||||
REPO: ${{ github.repository }}
|
REPO: ${{ github.repository }}
|
||||||
run: |
|
run: |
|
||||||
VERSION="${{ inputs.version }}"
|
VERSION="${{ inputs.version }}"
|
||||||
@@ -340,7 +340,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Create PR for version bump
|
- name: Create PR for version bump
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.GITEA_RELEASE_TOKEN }}
|
||||||
REPO: ${{ github.repository }}
|
REPO: ${{ github.repository }}
|
||||||
run: |
|
run: |
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
@@ -398,7 +398,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Verify checksums are consistent (main == tag == tarball)
|
- name: Verify checksums are consistent (main == tag == tarball)
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.GITEA_RELEASE_TOKEN }}
|
||||||
REPO: ${{ github.repository }}
|
REPO: ${{ github.repository }}
|
||||||
run: |
|
run: |
|
||||||
VERSION="${{ inputs.version }}"
|
VERSION="${{ inputs.version }}"
|
||||||
|
|||||||
@@ -11,10 +11,13 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
env:
|
||||||
|
HEAD_REF: ${{ github.head_ref }}
|
||||||
|
BASE_REF: ${{ github.base_ref }}
|
||||||
run: |
|
run: |
|
||||||
git clone --depth=1 "https://x-access-token:${{ secrets.GITEA_TOKEN }}@git.farh.net/${{ github.repository }}.git" .
|
git clone --depth=1 "https://x-access-token:${{ secrets.GITEA_TOKEN }}@git.farh.net/${{ github.repository }}.git" .
|
||||||
git fetch origin "${{ github.base_ref }}" --depth=1
|
git fetch origin "$BASE_REF" --depth=1
|
||||||
git fetch origin "${{ github.head_ref }}" --depth=1
|
git fetch origin "$HEAD_REF" --depth=1
|
||||||
git checkout "${{ github.sha }}"
|
git checkout "${{ github.sha }}"
|
||||||
|
|
||||||
- name: Install actionlint
|
- name: Install actionlint
|
||||||
|
|||||||
Reference in New Issue
Block a user