chore(deps): bump docker/login-action from 3d58c274f17dffee475a5520cbe67f0a882c4dbb to 0d4c9c5ea7693da7b068278f7b52bda2a190a446 #480
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Lint: YAML" | |
concurrency: | |
group: lint-yaml-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
on: | |
## Check YAML on merge queue insertion | |
merge_group: {} | |
## Check on release | |
release: | |
types: [created] | |
## Allow this workflow to be reused. | |
workflow_call: | |
inputs: | |
network: | |
description: "Network" | |
required: false | |
type: string | |
default: audit | |
## Check on push to `main` if modified | |
push: | |
branches: | |
- main | |
paths: | |
- ".github/workflows/*.yaml" | |
- ".github/workflows/*.yml" | |
- "workflows/*/*.yaml" | |
- "workflows/*/*.yml" | |
- "actions/*/*.yaml" | |
- "actions/*/*.yml" | |
- "containers/*/*.yaml" | |
- "containers/*/*.yml" | |
## Check each PR change against `main` | |
pull_request: | |
paths: | |
- ".github/workflows/*.yaml" | |
- ".github/workflows/*.yml" | |
- "workflows/*/*.yaml" | |
- "workflows/*/*.yml" | |
- "actions/*/*.yaml" | |
- "actions/*/*.yml" | |
- "containers/*/*.yaml" | |
- "containers/*/*.yml" | |
permissions: | |
contents: read | |
jobs: | |
## Task: Lint workflows in this respository with YAMLLint | |
lint-workflows-yaml: | |
name: "Workflows" | |
runs-on: ${{ vars.RUNNER || 'ubuntu-latest' }} | |
permissions: | |
contents: "read" | |
id-token: "write" | |
checks: "write" | |
pull-requests: "read" | |
steps: | |
- name: "Setup: Harden Runner" | |
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 | |
with: | |
egress-policy: ${{ inputs.network || 'audit' }} | |
- name: "Setup: Checkout" | |
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | |
with: | |
persist-credentials: false | |
- name: "Setup: PNPM" | |
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 | |
with: | |
version: ${{ env.PNPM_VERSION }} | |
- name: "Setup: Node" | |
uses: buildless/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.0 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: "pnpm" | |
- name: "Setup: NPM Credentials" | |
run: | | |
echo "@buf:registry=https://buf.build/gen/npm/v1" >> ~/.npmrc; | |
echo "//npm.buf.build/:_authToken=${{ secrets.BUF_NPM_TOKEN }}" >> ~/.npmrc; | |
- name: "Setup: Install Packages" | |
run: pnpm install --frozen-lockfile |