Skip to content

Commit 17fdaf9

Browse files
authored
Avoid explicit checkout in workflow (#42057)
* remove explicit checkout * check 1 --------- Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
1 parent 85c5055 commit 17fdaf9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/self-scheduled.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -586,11 +586,10 @@ jobs:
586586
runs-on: ubuntu-22.04
587587
needs: [setup, run_models_gpu]
588588
steps:
589+
# Checkout in order to run `utils/extract_warnings.py`. Avoid **explicit** checkout (i.e. don't specify `ref`) for
590+
# security reason.
589591
- name: Checkout transformers
590592
uses: actions/checkout@v4
591-
with:
592-
fetch-depth: 2
593-
ref: ${{ inputs.commit_sha || github.sha }}
594593

595594
- name: Install transformers
596595
run: pip install transformers

0 commit comments

Comments
 (0)