mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-11-29 03:43:04 +01:00
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>
36 lines
865 B
YAML
36 lines
865 B
YAML
name: Workflow lint
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
jactionlint:
|
|
name: Lint GitHub Actions
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
steps:
|
|
- name: Harden the runner (Audit all outbound calls)
|
|
uses: step-security/harden-runner@v2.23.0
|
|
with:
|
|
egress-policy: audit
|
|
- name: Checkout
|
|
uses: actions/checkout@v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- name: Lint workflows and Dependabot configuration
|
|
uses: jdx/jactionlint@v2.6.0
|
|
with:
|
|
profile: default
|
|
online: "false"
|
|
- name: Verify action lockfile
|
|
uses: github/gh-actions-lock@verify/v0.5.1
|