diff options
author | Christian Marangi <ansuelsmth@gmail.com> | 2023-05-22 15:27:48 +0200 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2023-05-24 19:26:02 +0100 |
commit | bf82648bf74412a364831252d02e708149ef84c7 (patch) | |
tree | bd75b555cf94ba9d0ee38dbb09d32f0def190868 | |
parent | 635d5488c91bbf4facf238c6e4baece6f131cbff (diff) | |
download | upstream-bf82648bf74412a364831252d02e708149ef84c7.tar.gz upstream-bf82648bf74412a364831252d02e708149ef84c7.tar.bz2 upstream-bf82648bf74412a364831252d02e708149ef84c7.zip |
CI: check-kernel-patches: use buildbot user on git diff check
Use buildbot user on git diff check instead of using git config
safe directory.
This should accomplish the same result but should be a better approach
following safe practice enforced by git.
Fixes: a7747e8670cb ("ci: fix check kernel patches job")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
(cherry picked from commit 6c80a578a4428c81fd92e0a2abe95dacfa20c008)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
-rw-r--r-- | .github/workflows/check-kernel-patches.yml | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/.github/workflows/check-kernel-patches.yml b/.github/workflows/check-kernel-patches.yml index 4ad35e6250..274bae367d 100644 --- a/.github/workflows/check-kernel-patches.yml +++ b/.github/workflows/check-kernel-patches.yml @@ -85,10 +85,6 @@ jobs: run: | chown -R buildbot:buildbot openwrt - - name: Opt-out from Git stricter repository ownership checks - run: | - git config --global --add safe.directory '*' - - name: Initialization environment run: | TARGET=$(echo ${{ inputs.target }} | cut -d "/" -f 1) @@ -138,6 +134,7 @@ jobs: run: make target/linux/refresh V=s - name: Validate Refreshed Kernel Patches + shell: su buildbot -c "sh -e {0}" working-directory: openwrt run: | . .github/workflows/scripts/ci_helpers.sh |