Commit ae06243 1 parent d9e0865 commit ae06243 Copy full SHA for ae06243
File tree 4 files changed +5
-5
lines changed
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 68
68
uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
69
69
with :
70
70
# Provides the Pull Request commit SHA or the GitHub merge group ref
71
- ref : ${{ github.event.pull_request.head.sha || github.ref }}
71
+ ref : ${{ github.event_name == 'pull_request_target' && github. event.pull_request.head.sha || github.ref }}
72
72
# We only need to fetch the last commit from the head_ref
73
73
# since we're not using the `--filter` operation from turborepo
74
74
# We don't use the `--filter` as we always want to force builds regardless of having changes or not
Original file line number Diff line number Diff line change 46
46
uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
47
47
with :
48
48
# Provides the Pull Request commit SHA or the GitHub merge group ref
49
- ref : ${{ github.event.pull_request.head.sha || github.ref }}
49
+ ref : ${{ github.event_name == 'pull_request_target' && github. event.pull_request.head.sha || github.ref }}
50
50
51
51
- name : Add Comment to PR
52
52
# Signal that a lighthouse run is about to start
Original file line number Diff line number Diff line change 73
73
uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
74
74
with :
75
75
# Provides the Pull Request commit SHA or the GitHub merge group ref
76
- ref : ${{ github.event.pull_request.head.sha || github.ref }}
76
+ ref : ${{ github.event_name == 'pull_request_target' && github. event.pull_request.head.sha || github.ref }}
77
77
78
78
- name : Restore Lint Cache
79
79
uses : actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
@@ -167,7 +167,7 @@ jobs:
167
167
uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
168
168
with :
169
169
# Provides the Pull Request commit SHA or the GitHub merge group ref
170
- ref : ${{ github.event.pull_request.head.sha || github.ref }}
170
+ ref : ${{ github.event_name == 'pull_request_target' && github. event.pull_request.head.sha || github.ref }}
171
171
# The Chromatic (@chromaui/action) Action requires a full history of the current branch in order to be able to compare
172
172
# previous changes and previous commits and determine which Storybooks should be tested against and what should be built
173
173
fetch-depth : 0
Original file line number Diff line number Diff line change 73
73
uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
74
74
with :
75
75
# Provides the Pull Request commit SHA or the GitHub merge group ref
76
- ref : ${{ github.event.pull_request.head.sha || github.ref }}
76
+ ref : ${{ github.event_name == 'pull_request_target' && github. event.pull_request.head.sha || github.ref }}
77
77
78
78
- name : Restore Lint Cache
79
79
uses : actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
You can’t perform that action at this time.
0 commit comments