Skip to content

Commit

Permalink
PR-check - use actions/checkout instead of git clone w redirect
Browse files Browse the repository at this point in the history
The git redirect is left behind in self-hosted runners, which is not a
good idea.
  • Loading branch information
JanneKiiskila committed Oct 7, 2024
1 parent 585a987 commit 7f576b7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/PR-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7f576b7

Please sign in to comment.