Skip to content

Commit 6ebcebf

Browse files
powerboat9dkm
authored andcommitted
Check for writes outside of the build directory
ChangeLog: * .github/workflows/ccpp.yml: Make files outside the build directory read-only. Signed-off-by: Owen Avery <[email protected]>
1 parent c67f53d commit 6ebcebf

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/ccpp.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ jobs:
4444
# install Rust directly using rustup
4545
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain=1.72.0;
4646
47+
- name: Make Source Read-Only
48+
run: chmod -R a-w ./*
49+
4750
- name: Configure
4851
run: |
4952
mkdir -p gccrs-build;
@@ -125,6 +128,9 @@ jobs:
125128
# install Rust directly using rustup
126129
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain=1.72.0;
127130
131+
- name: Make Source Read-Only
132+
run: chmod -R a-w ./*
133+
128134
- name: Configure
129135
run: |
130136
mkdir -p gccrs-build;
@@ -207,6 +213,9 @@ jobs:
207213
# install Rust directly using rustup
208214
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain=1.72.0;
209215
216+
- name: Make Source Read-Only
217+
run: chmod -R a-w ./*
218+
210219
- name: Configure
211220
run: |
212221
mkdir -p gccrs-build;
@@ -290,6 +299,9 @@ jobs:
290299
# install Rust directly using rustup
291300
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain=1.72.0;
292301
302+
- name: Make Source Read-Only
303+
run: chmod -R a-w ./*
304+
293305
- name: Configure
294306
run: |
295307
mkdir -p gccrs-build;
@@ -349,6 +361,9 @@ jobs:
349361
# install Rust directly using rustup
350362
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain=1.72.0;
351363
364+
- name: Make Source Read-Only
365+
run: chmod -R a-w ./*
366+
352367
- name: Configure
353368
run: |
354369
mkdir -p gccrs-build;
@@ -418,6 +433,9 @@ jobs:
418433
# install Rust directly using rustup
419434
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain=1.72.0;
420435
436+
- name: Make Source Read-Only
437+
run: chmod -R a-w ./*
438+
421439
- name: Configure
422440
run: |
423441
mkdir -p gccrs-build;

0 commit comments

Comments
 (0)