Skip to content

Commit c17a73c

Browse files
committed
Disable checkout from base
1 parent 21d35e4 commit c17a73c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/o2-linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
echo "linter_ran=1" >> "$GITHUB_OUTPUT"
5252
[[ "${{ github.event_name }}" == "pull_request_target" ]] && options="-g"
5353
# Checkout the script from the base branch to prevent execution of arbitrary code in the head branch.
54-
git checkout ${{ env.BRANCH_BASE }} -- Scripts/o2_linter.py
54+
# git checkout ${{ env.BRANCH_BASE }} -- Scripts/o2_linter.py
5555
# shellcheck disable=SC2086 # Ignore unquoted options.
5656
python3 Scripts/o2_linter.py $options "${files[@]}"
5757
echo "Tip: If you allow actions in your fork repository, O2 linter will run when you push commits."

0 commit comments

Comments
 (0)