Skip to content

Commit 61dc47e

Browse files
committed
fix: PR checkout 的分支和权限问题
1 parent 652d0e1 commit 61dc47e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/aquamai.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
push:
66
pull_request_target:
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
build:
1013
runs-on: windows-latest
@@ -17,6 +20,7 @@ jobs:
1720
- uses: actions/checkout@v4
1821
with:
1922
fetch-depth: 0
23+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
2024

2125
- name: Get Git Describe
2226
run: |

0 commit comments

Comments
 (0)