File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 31
31
steps :
32
32
- uses : actions/checkout@v4
33
33
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'
35
40
persist-credentials : false
36
41
37
42
- name : Install Rust Stable
@@ -136,8 +141,10 @@ jobs:
136
141
run : |
137
142
# Perform build and execution separately to avoid any potential output from
138
143
# 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
141
148
142
149
- name : Prepare comment
143
150
run : |
You can’t perform that action at this time.
0 commit comments