From 0c329c83c3f58fc1073f6c2b5c55fe695969c198 Mon Sep 17 00:00:00 2001 From: Sean Molenaar Date: Thu, 1 May 2025 16:33:47 +0200 Subject: [PATCH] feat: add linting for GHA --- .github/workflows/action-lint.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/action-lint.yml diff --git a/.github/workflows/action-lint.yml b/.github/workflows/action-lint.yml new file mode 100644 index 00000000..29100930 --- /dev/null +++ b/.github/workflows/action-lint.yml @@ -0,0 +1,30 @@ +name: GitHub Actions linting + +on: + push: + branches: + - develop + - main + paths: + - '.github/workflows/*.ya?ml' + pull_request: + paths: + - '.github/workflows/*.ya?ml' + +concurrency: + group: "action-lint-${{ github.ref }}" + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + +jobs: + workflow_syntax: + permissions: + contents: read + name: Lint actions + uses: move-agency/actions-templates/.github/workflows/actionlint.yml@main + workflow_security: + permissions: + # required for workflows in private repositories + contents: read + actions: read + name: Check action security + uses: move-agency/actions-templates/.github/workflows/zizmor.yml@main