diff --git a/.github/workflows/commits.yml b/.github/workflows/commits.yml index 27909bff7d..a349aed019 100644 --- a/.github/workflows/commits.yml +++ b/.github/workflows/commits.yml @@ -73,6 +73,8 @@ jobs: - uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748 with: fetch-depth: 0 + # The action above is supposed to do this for us, but it doesn't appear to stick. + - run: /usr/bin/git config --global --add safe.directory /__w/suricata/suricata - run: git fetch - run: git clone https://github.com/OISF/libhtp -b 0.5.x - name: Building all commits diff --git a/.github/workflows/formatting.yml b/.github/workflows/formatting.yml index 1ff80e5f3c..812a093f8f 100644 --- a/.github/workflows/formatting.yml +++ b/.github/workflows/formatting.yml @@ -95,7 +95,8 @@ jobs: # does not know the branch (from the forked repo). Argh. # with: # ref: ${{ github.head_ref }} # check out branch - + # The action above is supposed to do this for us, but it doesn't appear to stick. + - run: /usr/bin/git config --global --add safe.directory /__w/suricata/suricata # Manually ignore the merge commit as none of the with/ref things tried # with actions/checkout seemed to work for pull requests from forks into # the OISF repo.