From 745922673f5508b1ff5364b83578ac3cf6713b3e Mon Sep 17 00:00:00 2001 From: saisatishkarra Date: Fri, 12 Jan 2024 10:36:32 -0600 Subject: [PATCH] skip dependabot branches for luacheck xml report publishing skip failing checks due to check run creation by dependabot --- .github/workflows/lua-lint.yml | 5 +++++ code-check-actions/lua-lint/action.yml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lua-lint.yml b/.github/workflows/lua-lint.yml index ae612487..ad501b48 100644 --- a/.github/workflows/lua-lint.yml +++ b/.github/workflows/lua-lint.yml @@ -16,6 +16,11 @@ jobs: env: TEST_REPOSITORY: "${{github.repository_owner}}/atc-router" runs-on: ubuntu-latest + permissions: + contents: read + issues: read + checks: write + pull-requests: write name: Luacheck code analysis steps: - uses: actions/checkout@v3 diff --git a/code-check-actions/lua-lint/action.yml b/code-check-actions/lua-lint/action.yml index 1f4b0b44..45aa38fb 100644 --- a/code-check-actions/lua-lint/action.yml +++ b/code-check-actions/lua-lint/action.yml @@ -42,7 +42,7 @@ runs: # Publishing: https://github.com/EnricoMi/publish-unit-test-result-action#publishing-test-results - name: Luacheck Report uses: EnricoMi/publish-unit-test-result-action@v2 - if: always() + if: always() && github.actor != 'dependabot[bot]' with: files: | luacheck_${{github.sha}}.xml