Skip to content

Commit 7d8956d

Browse files
committed
Secure .cargo config in ci-basic.yml CI to apply custom rustflags
1 parent 7691e79 commit 7d8956d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/ci-basic.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ jobs:
2222
- name: Install dependencies on Ubuntu
2323
#run: sudo apt-get update && sudo apt-get install -y protobuf-compiler build-essential librocksdb-dev
2424
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler librocksdb-dev
25+
# Remove group/world write permissions so Cargo loads the config (insecure files are ignored)
26+
- name: Secure .cargo config
27+
run: chmod -R go-w .cargo
2528
- name: Run tests
2629
run: cargo test --verbose
2730
- name: Verify working directory is clean

0 commit comments

Comments
 (0)