File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44name : Go
55
66on :
7- pull_request_target :
7+ pull_request :
88 branches : ["main"]
99 push :
1010 branches : ["main"]
1111
12- env :
13- TURSO_API_TOKEN : ${{ secrets.TURSOCI_TOKEN }}
12+ permissions :
13+ contents : read
1414
1515jobs :
16- authorize :
17- environment : ${{ github.event_name == 'pull_request_target' &&
18- github.event.pull_request.head.repo.full_name != github.repository &&
19- ' external' || 'internal' }}
20- runs-on : ubuntu-latest
21- steps :
22- - run : true
23-
2416 build :
25- needs : authorize
2617 runs-on : ubuntu-latest
2718 steps :
2819 - uses : actions/checkout@v4.2.2
2920 with :
3021 ref : ${{ github.event.pull_request.head.sha || github.ref }}
31- # ref: "refs/pull/${{ github.event.number }}/merge" # THIS IS INSECURE
3222
3323 - name : Setup Golang with cache
3424 uses : actions/setup-go@v5.5.0
6757
6858 - name : Build Turso binary
6959 run : go build -o turso cmd/turso/main.go
70-
71- # - name: Integration tests checkout
72- # uses: actions/checkout@v3
73- # with:
74- # repository: tursodatabase/tursotest
75- # ref: "main"
76- # path: "tests"
77- # token: ${{ secrets.ACCESS_TOKEN_TO_TESTS }}
78-
79- # - name: Integration Test
80- # run: cd tests && export TURSO_BINARY=../turso && go run cmd/tursotest/main.go -test.v -test.count=1 run integrationtests
You can’t perform that action at this time.
0 commit comments