Skip to content

Commit e9208fa

Browse files
committed
feat: update nix build ci to checkout fork if workflow approved
1 parent df59fac commit e9208fa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/nix-build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@ jobs:
3131
- name: Check out code
3232
uses: actions/checkout@v4
3333
with:
34-
ref: ${{ github.event.pull_request.head.ref || github.ref }}
34+
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
35+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
3536
fetch-depth: 0
3637
fetch-tags: true
38+
token: ${{ secrets.GITHUB_TOKEN }}
3739
- name: aws-creds
3840
uses: aws-actions/configure-aws-credentials@v4
3941
with:
@@ -80,4 +82,3 @@ jobs:
8082
AWS_SESSION_TOKEN: ${{ env.AWS_SESSION_TOKEN }}
8183

8284
name: build psql bundle on ${{ matrix.arch }}
83-

0 commit comments

Comments
 (0)