ci: add jactionlint and address workflow findings (#14304)

* ci: add jactionlint and address workflow findings

* ci(installer): pin vercel 66.6.0 and group major updates

68.0.0 was released the same day it was pinned, which skips the
seven-day cooldown this branch adds. Vercel ships a major version
about weekly, so majors join the npm group to keep it to one PR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* ci: lock workflow action dependencies

Add .github/workflows/actions.lock, generated by gh actions-lock. It
records the commit for every action the workflows use, including
actions called by other actions. Workflows now reference release
tags and the lockfile holds the commit that runs.

Verify the lockfile in the Workflow lint job so a workflow change
that skips regenerating it fails the pull request.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* ci: lock and time-limit the alias collision job

The job arrived from master in #10859 after this branch was cut, so
it had no timeout and its setup-python version was missing from the
lockfile.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: mcornella <1441704+mcornella@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2026-12-02 18:52:53 +01:00
1 parent ccf23f54ea
commit 8da770db74
12 files changed
+5890 -33

No files matched your search

+16 -6
View File
@@ -19,6 +19,7 @@ jobs:
name: Test installer
if: github.repository == 'ohmyzsh/ohmyzsh'
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
matrix:
os:
@@ -26,12 +27,12 @@ jobs:
- macos-latest
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@aebdcf6156ab6691adf63218240e476564a1ed4c # v2.23.0
uses: step-security/harden-runner@v2.23.0
with:
egress-policy: audit
- name: Set up git repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
uses: actions/checkout@v7.0.1
- name: Install zsh
if: runner.os == 'Linux'
run: sudo apt-get update; sudo apt-get install zsh
@@ -42,19 +43,28 @@ jobs:
name: Deploy installer in install.ohmyz.sh
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
timeout-minutes: 15
environment: vercel
needs:
- test
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@aebdcf6156ab6691adf63218240e476564a1ed4c # v2.23.0
uses: step-security/harden-runner@v2.23.0
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
uses: actions/checkout@v7.0.1
with:
persist-credentials: false
- name: Set up Node.js
uses: actions/setup-node@v7.1.0
with:
node-version: "24"
package-manager-cache: false
- name: Install Vercel CLI
run: npm install -g vercel
working-directory: .github/workflows/installer
run: npm ci --ignore-scripts --no-audit --no-fund
- name: Setup project and deploy
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
@@ -63,4 +73,4 @@ jobs:
run: |
cp tools/install.sh .github/workflows/installer/install.sh
cd .github/workflows/installer
vc deploy --prod -t "$VERCEL_TOKEN"
./node_modules/.bin/vercel deploy --prod -t "$VERCEL_TOKEN"