From 7f576b76c47b0f53a0b6221e5d2a87d8689fe0ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janne=20Kiiskil=C3=A4?= Date: Mon, 7 Oct 2024 10:01:23 +0300 Subject: [PATCH] PR-check - use actions/checkout instead of git clone w redirect The git redirect is left behind in self-hosted runners, which is not a good idea. --- .github/workflows/PR-check.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/PR-check.yml b/.github/workflows/PR-check.yml index 6d729e35..76f50161 100644 --- a/.github/workflows/PR-check.yml +++ b/.github/workflows/PR-check.yml @@ -47,10 +47,11 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 - - name: Get scripts internal... - run: | - git config --global url."https://${{ secrets.ACCESS_TOKEN }}@github.com/".insteadOf "git@github.com:" - git clone git@github.com:PelionIoT/scripts-internal.git + - uses: actions/checkout@v4 + with: + repository: 'PelionIoT/scripts-internal' + token: ${{ secrets.ACCESS_TOKEN }} + path: 'java-coap/scripts-internal' - name: Run no-more-lines w pysh-check run: | sudo apt install pycodestyle pydocstyle black