Skip to content

Commit 3f23485

Browse files
authored
fix(Docker-workflow): Modify checkout code
1 parent 4e99ad9 commit 3f23485

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/docker.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
name: Docker Health Check
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
branches:
66
- master
77

88
jobs:
99
docker_health_check:
1010
runs-on: ubuntu-latest
1111
steps:
12-
13-
- uses: actions/checkout@v4
12+
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
with:
16+
ref: ${{ github.event.pull_request.head.ref }}
17+
repository: ${{ github.event.pull_request.head.repo.full_name }}
18+
1419
- name: install requirements
1520
run: pip install -r requirements.txt
1621

0 commit comments

Comments
 (0)