Skip to content

Commit 1136b23

Browse files
committed
fix(ci): Prevent poisoning of sources by relocating checkout
Origin: SiliconLabsSoftware#122 Relate-to: Z-Wave-Alliance/OSWG#48 (comment) Relate-to: SiliconLabsSoftware#67 Relate-to: https://github.com/rzr/z-wave-protocol-controller/security/code-scanning/1 Relate-to: https://cwe.mitre.org/data/definitions/829.html Relate-to: SiliconLabsSoftware#100 Signed-off-by: Philippe Coval <[email protected]>
1 parent b911be9 commit 1136b23

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@ jobs:
4646
echo "TODO: https://docs.docker.com/engine/security/trust/"
4747
# yamllint enable rule:line-length
4848
# yamllint disable-line rule:line-length
49-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
50-
with:
51-
fetch-depth: 0
52-
ref: ${{ github.event.workflow_run.head_commit.id }}
5349

5450
- name: Download embedded applications package
5551
# yamllint disable-line rule:line-length
@@ -77,6 +73,12 @@ jobs:
7773
&& rm z-wave-stack-binaries-*-Linux.tar.gz
7874
&& date -u
7975
76+
- name: Download tests files
77+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
78+
with:
79+
fetch-depth: 0
80+
ref: ${{ github.event.workflow_run.head_commit.id }}
81+
8082
- name: Run
8183
id: run
8284
# yamllint disable rule:line-length

0 commit comments

Comments
 (0)