repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by bugabinga

ci: checkout without actions token

b2c702664f7a727550014258a3ade4ffdebd03a4

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (1)

.github/workflows/check.yml

Modified
11 11 extensions:
12 12 runs-on: ubuntu-latest
13 13 steps:
14 - - uses: actions/checkout@v6
15 - if: github.event_name == 'push'
16 - with:
17 - token: ""
18 - persist-credentials: false
19 - - uses: actions/checkout@v6
20 - if: github.event_name == 'pull_request_target'
21 - with:
22 - repository: ${{ github.event.pull_request.head.repo.full_name }}
23 - ref: ${{ github.event.pull_request.head.sha }}
24 - token: ""
25 - persist-credentials: false
14 + - name: Checkout
15 + env:
16 + CHECKOUT_REPO: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name || github.repository }}
17 + CHECKOUT_REF: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }}
18 + run: |
19 + git init .
20 + git remote add origin "https://github.com/${CHECKOUT_REPO}.git"
21 + git fetch --depth=1 origin "$CHECKOUT_REF"
22 + git checkout --detach FETCH_HEAD
26 23 - name: Install Bun
27 24 run: |
28 25 curl -fsSL -o bun.zip https://github.com/oven-sh/bun/releases/download/bun-v1.3.14/bun-linux-x64.zip