# This workflow is provided via the organization template repository # # https://github.com/nextcloud/.github # https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization # # SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors # SPDX-License-Identifier: MIT name: Lint GitHub Actions on: pull_request: paths: - '.github/workflows/**' permissions: contents: read jobs: action-lint: runs-on: ubuntu-latest name: GitHub Actions lint steps: - name: Checkout uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: persist-credentials: false - name: GitHub action templates lint uses: ibiqlik/action-yamllint@2576378a8e339169678f9939646ee3ee325e845c # v3.1.1 with: file_or_dir: .github/workflows config_data: | line-length: warning - name: Install the latest version of uv uses: astral-sh/setup-uv@4959332f0f014c5280e7eac8b70c90cb574c9f9b # v6.6.0 - name: Check GitHub actions run: uvx zizmor --min-severity medium .github/workflows/*.yml