Skip to content

Commit cc423b3

Browse files
fix(tooling): checkout-in-github-actions (#1449)
Co-authored-by: Shreyas Sharma <shreysh2@cisco.com>
1 parent cbd1ac6 commit cc423b3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/pull-request.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
steps:
2020
- name: Checkout code
2121
uses: actions/checkout@v3
22+
with:
23+
ref: ${{ github.event.pull_request.head.sha }}
2224

2325
- name: Set up Node.js
2426
uses: actions/setup-node@v3
@@ -44,6 +46,8 @@ jobs:
4446
steps:
4547
- name: Checkout code
4648
uses: actions/checkout@v3
49+
with:
50+
ref: ${{ github.event.pull_request.head.sha }}
4751

4852
- name: Set up Node.js
4953
uses: actions/setup-node@v3
@@ -84,6 +88,8 @@ jobs:
8488
steps:
8589
- name: Checkout code
8690
uses: actions/checkout@v3
91+
with:
92+
ref: ${{ github.event.pull_request.head.sha }}
8793

8894
- name: Set up Node.js
8995
uses: actions/setup-node@v3
@@ -114,6 +120,8 @@ jobs:
114120
steps:
115121
- name: Checkout code
116122
uses: actions/checkout@v3
123+
with:
124+
ref: ${{ github.event.pull_request.head.sha }}
117125

118126
- name: Set up Node.js
119127
uses: actions/setup-node@v3
@@ -169,6 +177,8 @@ jobs:
169177
steps:
170178
- name: Checkout code
171179
uses: actions/checkout@v3
180+
with:
181+
ref: ${{ github.event.pull_request.head.sha }}
172182

173183
- name: Set up Node.js
174184
uses: actions/setup-node@v3

0 commit comments

Comments
 (0)