We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7805a68 commit cd61ef9Copy full SHA for cd61ef9
.github/workflows/ci.yml
@@ -4,6 +4,7 @@ on:
4
branches:
5
- main
6
pull_request:
7
+ pull_request_target:
8
workflow_dispatch:
9
10
jobs:
@@ -18,11 +19,14 @@ jobs:
18
19
20
coverage:
21
runs-on: ubuntu-latest
22
+ if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target'
23
permissions:
24
contents: read
25
pull-requests: write
26
steps:
27
- uses: actions/checkout@v4
28
+ with:
29
+ ref: ${{ github.event.pull_request.head.sha }}
30
- uses: actions/setup-go@v5
31
with:
32
go-version-file: 'go.mod'
@@ -36,7 +40,6 @@ jobs:
36
40
path: coverage.txt
37
41
- name: Generate coverage report
38
42
uses: fgrosse/go-coverage-report@v1.2.0
39
- if: github.event_name == 'pull_request'
43
44
verify-codegen:
45
0 commit comments