Skip to content

Update README.md

Update README.md #11

Workflow file for this run

# ============================================================
# .github/workflows/actionlint.yml (GitHub Actions Lint)
# ============================================================
# WHY-FILE: Central actionlint workflow used by repositories to validate
# GitHub Actions syntax, expressions, and common workflow mistakes.
# REQ: This workflow MUST support workflow_call for reuse.
# REQ: It MUST run on pushes, pull requests, and manual trigger.
# REQ: It MUST use least privileges.
# OBS: This workflow validates only and does not modify repository contents.
name: Actionlint
# WHY: Provide a centrally maintained, reusable workflow for validating
# GitHub Actions across repositories.
# OBS: Called by thin client workflows in downstream repositories.
on:
push:
branches: [main] # WHY: Validate on direct updates to main.
pull_request:
branches: [main] # WHY: Validate changes before merge.
workflow_call: # WHY: Allow reuse from other repositories.
workflow_dispatch: # WHY: Allow manual triggering.
permissions: # WHY: Use least privileges required.
contents: read
jobs:
lint:
name: GitHub Actions lint
runs-on: ubuntu-latest # WHY: Linux environment is standard for CI.
timeout-minutes: 10 # WHY: Prevent hanging jobs; actionlint completes quickly.
steps:
# ============================================================
# ASSEMBLE: Get code
# ============================================================
- name: A1) Checkout repository code
# WHY: Needed to read workflow files from the repository.
uses: actions/checkout@v6
# ============================================================
# BASIC CHECKS: GitHub Actions workflows
# ============================================================
- name: B1) Download actionlint
shell: bash
run: |
bash <(curl -sSfL https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
- name: B2) Run actionlint
shell: bash
run: |
./actionlint -color