From 0a673629ca284418e4ae692ca30b4dfa32723706 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Thu, 4 Sep 2025 22:15:27 +0000 Subject: [PATCH 1/3] ci: Add GitHub action linting workflow Co-Authored-By: AJ Steers --- .github/workflows/actionlint.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/actionlint.yml diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.yml new file mode 100644 index 000000000..3b0363317 --- /dev/null +++ b/.github/workflows/actionlint.yml @@ -0,0 +1,25 @@ +name: GitHub action linting + +on: + push: + branches: + - main + paths: + - '.github/workflows/**' + pull_request: + paths: + - '.github/workflows/**' + +jobs: + actionlint: + name: actionlint + runs-on: ubuntu-24.04 + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Run actionlint + uses: reviewdog/action-actionlint@v1.67.0 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + reporter: github-pr-review + level: error From ef9f493d2a66bf25c03bc7143fe0d702605f79fc Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Fri, 5 Sep 2025 00:33:31 +0000 Subject: [PATCH 2/3] fix: Add permissions block and remove push triggers Co-Authored-By: AJ Steers --- .github/workflows/actionlint.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.yml index 3b0363317..39e8b39f7 100644 --- a/.github/workflows/actionlint.yml +++ b/.github/workflows/actionlint.yml @@ -1,15 +1,14 @@ name: GitHub action linting on: - push: - branches: - - main - paths: - - '.github/workflows/**' pull_request: paths: - '.github/workflows/**' +permissions: + contents: read + pull-requests: write + jobs: actionlint: name: actionlint From 722aa7ec2eb7f6ea779f29dff23d702e71f27239 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Fri, 5 Sep 2025 00:36:00 +0000 Subject: [PATCH 3/3] fix: Add fail_on_error to block CI on actionlint failures Co-Authored-By: AJ Steers --- .github/workflows/actionlint.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.yml index 39e8b39f7..890b6b0df 100644 --- a/.github/workflows/actionlint.yml +++ b/.github/workflows/actionlint.yml @@ -22,3 +22,4 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} reporter: github-pr-review level: error + fail_on_error: true