Skip to content

Commit e881bb1

Browse files
devmgnclaude
andauthored
chore: migrate workflow linting to mise-managed tools (#2656)
* chore: migrate workflow linting to mise-managed tools Replace curl-downloaded actionlint and uvx-based zizmor with mise-managed versions. Remove the shell script wrapper and call tools directly from package.json. Fix zizmor findings by adding GitHub Environment for secrets and persist-credentials: false. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]> * fix: remove zizmor config reference from actions-lint workflow Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
1 parent 67cf945 commit e881bb1

6 files changed

Lines changed: 10 additions & 18 deletions

File tree

.github/workflows/actions-lint.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,5 @@ jobs:
3232

3333
- name: zizmor
3434
uses: zizmorcore/zizmor-action@71321a20a9ded102f6e9ce5718a2fcec2c4f70d8 # v0.5.2
35-
with:
36-
config: .github/zizmor.yml
3735
env:
3836
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/update-msw.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,29 @@ jobs:
1616
UpdateMSW:
1717
if: github.event_name == 'workflow_dispatch' || startsWith(github.ref_name, 'renovate/')
1818
runs-on: ubuntu-24.04
19+
environment: bot
1920
timeout-minutes: 10
2021
permissions:
2122
contents: write
2223
steps:
2324
- name: Checkout
2425
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2526
with:
26-
token: ${{ secrets.PUSH_TOKEN }}
27+
persist-credentials: false
2728

2829
- name: Setup Project
2930
uses: ./.github/actions/setup
3031

3132
- name: Update and commit mockServiceWorker.js
33+
env:
34+
PUSH_TOKEN: ${{ secrets.PUSH_TOKEN }}
3235
run: |
3336
pnpm msw init public --save
3437
git add public/mockServiceWorker.js
3538
if ! git diff --staged --quiet; then
3639
git config user.name "github-actions[bot]"
3740
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
41+
git remote set-url origin "https://x-access-token:${PUSH_TOKEN}@github.com/${{ github.repository }}.git"
3842
git commit -m "chore: update mockServiceWorker.js"
3943
git push
4044
fi

.github/zizmor.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

.tool-versions

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
nodejs 24.14.0
2-
pnpm 10.32.1
3-
uv 0.11.0
1+
actionlint 1.7.11
2+
nodejs 24.14.0
3+
pnpm 10.32.1
4+
zizmor 1.23.1

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"fix": "pnpm lint:fix && pnpm fmt:fix",
1111
"lint": "oxlint",
1212
"lint:fix": "oxlint --fix",
13-
"lint:workflows": "bash scripts/lint-workflows.sh",
13+
"lint:workflows": "actionlint -color && zizmor .github/workflows/",
1414
"fmt": "oxfmt --check .",
1515
"fmt:fix": "oxfmt --write .",
1616
"knip": "knip --strict --cache",

scripts/lint-workflows.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)