diff --git a/.github/workflows/pr-validation.yaml b/.github/workflows/pr-validation.yaml index ee0e1d1..73c2b7f 100644 --- a/.github/workflows/pr-validation.yaml +++ b/.github/workflows/pr-validation.yaml @@ -6,12 +6,16 @@ on: jobs: validate: - runs-on: runners-privilegedescalation + runs-on: ubuntu-latest timeout-minutes: 5 steps: - name: Checkout - uses: actions/checkout@v6 + run: | + git clone --depth=1 "https://x-access-token:${{ secrets.GITEA_TOKEN }}@git.farh.net/${{ github.repository }}.git" . + git fetch origin "${{ github.base_ref }}" --depth=1 + git fetch origin "${{ github.head_ref }}" --depth=1 + git checkout "${{ github.sha }}" - name: Install actionlint run: |