File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 3
3
name : z-wave-protocol-controller Build in rootfs for arch
4
4
5
5
on : # yamllint disable-line rule:truthy
6
+ # pull_request_target: # Avoid to prevent CodeQL CWE-829
6
7
push :
7
8
tags :
8
9
- ' *'
18
19
- arm64
19
20
# - armhf # TODO Enable when supported
20
21
steps :
22
+ - name : Security check
23
+ if : ${{ github.event.action == 'pull_request_target'}}
24
+ run : echo "Prevent running (CodeQL CWE-829)" && exit 1
21
25
# yamllint disable-line rule:line-length
22
26
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
23
27
with :
Original file line number Diff line number Diff line change 6
6
name : build
7
7
8
8
on : # yamllint disable-line rule:truthy
9
+ pull_request :
10
+ # pull_request_target: # Avoid to prevent CodeQL CWE-829
9
11
push :
10
12
11
13
jobs :
16
18
project-name : z-wave-protocol-controller # Align to docker (lowercase)
17
19
runs-on : ubuntu-22.04
18
20
steps :
21
+ - name : Security check
22
+ if : ${{ github.event.action == 'pull_request_target'}}
23
+ run : echo "Prevent running (CodeQL CWE-829)" && exit 1
19
24
# yamllint disable-line rule:line-length
20
25
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
21
26
with :
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ name: test
9
9
run-name : " test: ${{ github.event.workflow_run.head_branch }}#${{ github.event.workflow_run.head_commit.id }}"
10
10
11
11
on : # yamllint disable-line rule:truthy
12
+ # pull_request_target: # Avoid to prevent CodeQL CWE-829
12
13
workflow_run :
13
14
workflows : ["build"]
14
15
types :
24
25
runs-on : ubuntu-24.04
25
26
if : ${{ github.event.workflow_run.conclusion == 'success' }}
26
27
steps :
28
+ - name : Security check
29
+ if : ${{ github.event.action == 'pull_request_target'}}
30
+ run : echo "Prevent running (CodeQL CWE-829)" && exit 1
27
31
- name : Download image
28
32
id : image
29
33
# yamllint disable-line rule:line-length
You can’t perform that action at this time.
0 commit comments