Skip to content

Commit

Permalink
[ci] fix git checkout for CI jobs (fixes #5151) (#5152)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Apr 15, 2022
1 parent 6105ba9 commit 3ad26a4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/r_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ jobs:
- r_customization: csan
compiler: clang
steps:
- name: Trust git cloning LightGBM
run: |
git config --global --add safe.directory "${GITHUB_WORKSPACE}"
- name: Checkout repository
uses: actions/checkout@v2.4.0
with:
Expand Down Expand Up @@ -210,6 +213,9 @@ jobs:
run: |
apt-get update --allow-releaseinfo-change
apt-get install --no-install-recommends -y git
- name: Trust git cloning LightGBM
run: |
git config --global --add safe.directory "${GITHUB_WORKSPACE}"
- name: Checkout repository
uses: actions/checkout@v2.4.0
with:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/static_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ jobs:
runs-on: ubuntu-latest
container: rocker/verse
steps:
- name: Trust git cloning LightGBM
run: |
git config --global --add safe.directory "${GITHUB_WORKSPACE}"
- name: Checkout repository
uses: actions/checkout@v2.4.0
with:
Expand Down

0 comments on commit 3ad26a4

Please sign in to comment.