Skip to content

Commit

Permalink
Check for writes outside of the build directory
Browse files Browse the repository at this point in the history
ChangeLog:

	* .github/workflows/ccpp.yml: Make files outside the build
	directory read-only.

Signed-off-by: Owen Avery <[email protected]>
  • Loading branch information
powerboat9 committed Apr 25, 2024
1 parent fa86c37 commit f4df263
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ jobs:
# install Rust directly using rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain=1.72.0;
- name: Make Source Read-Only
run: chmod -R -w .;
chmod 711 .

- name: Configure
run: |
mkdir -p gccrs-build;
Expand Down Expand Up @@ -122,6 +126,10 @@ jobs:
# install Rust directly using rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain=1.72.0;
- name: Make Source Read-Only
run: chmod -R -w .;
chmod 711 .

- name: Configure
run: |
mkdir -p gccrs-build;
Expand Down Expand Up @@ -205,6 +213,10 @@ jobs:
# install Rust directly using rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain=1.72.0;
- name: Make Source Read-Only
run: chmod -R -w .;
chmod 711 .

- name: Configure
run: |
mkdir -p gccrs-build;
Expand Down Expand Up @@ -264,6 +276,10 @@ jobs:
# install Rust directly using rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain=1.72.0;
- name: Make Source Read-Only
run: chmod -R -w .;
chmod 711 .

- name: Configure
run: |
mkdir -p gccrs-build;
Expand Down

0 comments on commit f4df263

Please sign in to comment.