Skip to content

Commit 5c2b569

Browse files
committed
Use local sync-team code for performing dry runs
1 parent d1c191e commit 5c2b569

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/dry-run.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ jobs:
3131
steps:
3232
- uses: actions/checkout@v4
3333
with:
34-
repository: rust-lang/sync-team
34+
# Always checkout the master branch to avoid checking out
35+
# code of untrusted PRs.
36+
# This might break the dry-run if code or schema modifications
37+
# are performed, we can selectively allow that in the future
38+
# e.g. if the author of the PR is trusted.
39+
ref: 'master'
3540
persist-credentials: false
3641

3742
- name: Install Rust Stable
@@ -136,8 +141,10 @@ jobs:
136141
run: |
137142
# Perform build and execution separately to avoid any potential output from
138143
# cargo leaking into the output file.
139-
cargo build --release
140-
./target/release/sync-team print-plan --services github --team-json team-api 2>&1 | tee -a output.txt
144+
cargo build --manifest-path sync-team/Cargo.toml --release
145+
./sync-team/target/release/sync-team print-plan \
146+
--services github \
147+
--team-json team-api 2>&1 | tee -a output.txt
141148
142149
- name: Prepare comment
143150
run: |

0 commit comments

Comments
 (0)