From b0d156c00b3900c8e40cf7f0e76c34b734d50598 Mon Sep 17 00:00:00 2001 From: dundargoc <33953936+dundargoc@users.noreply.github.com> Date: Sat, 11 Feb 2023 13:22:54 +0100 Subject: [PATCH] ci: run lintcommit file from PR branch (#22219) As the trigger type is no longer pull_request_target there is no longer any risk of using the lintcommit script directly from the user PR. --- .github/workflows/lintcommit.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/lintcommit.yml b/.github/workflows/lintcommit.yml index 9941a01a9b..afedbe0b12 100644 --- a/.github/workflows/lintcommit.yml +++ b/.github/workflows/lintcommit.yml @@ -15,9 +15,7 @@ jobs: with: fetch-depth: 0 ref: ${{ github.event.pull_request.head.sha }} - path: pr_nvim - uses: rhysd/action-setup-vim@v1 with: neovim: true - - run: wget https://raw.githubusercontent.com/neovim/neovim/master/scripts/lintcommit.lua - - run: nvim --clean -es +"cd pr_nvim" +"lua dofile('../lintcommit.lua').main({trace=false})" + - run: nvim --clean -es +"lua require('scripts.lintcommit').main({trace=false})"