Skip to content

Commit

Permalink
CI: fix failure due to git's new safe directory behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
Carbenium committed May 27, 2022
1 parent 5ac4c54 commit 22fe620
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
run: dnf install -y git tito

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0

Expand All @@ -24,6 +24,8 @@ jobs:

- name: Build rpm
run: |
# Fix for: https://github.com/actions/checkout/issues/766 (git CVE-2022-24765)
git config --global --add safe.directory "$GITHUB_WORKSPACE"
cd $GITHUB_WORKSPACE
tito build --offline --rpm -o .
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ jobs:
run: dnf install -y git tito

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install build dependencies
run: dnf builddep -y $GITHUB_WORKSPACE/freeipa-mailserver.spec

- name: Build rpm
run: |
# Fix for: https://github.com/actions/checkout/issues/766 (git CVE-2022-24765)
git config --global --add safe.directory "$GITHUB_WORKSPACE"
cd $GITHUB_WORKSPACE
tito build --test --rpm -o .
Expand Down

0 comments on commit 22fe620

Please # to comment.