From 61b877e5736f1b9a962a3084067d2557aef18cde Mon Sep 17 00:00:00 2001 From: Jason Dellaluce Date: Wed, 30 Aug 2023 08:58:54 +0000 Subject: [PATCH] fix(ci): solve vcs stamping issue when building during validation Signed-off-by: Jason Dellaluce --- .github/workflows/reusable_validate_plugins.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/reusable_validate_plugins.yaml b/.github/workflows/reusable_validate_plugins.yaml index 1bcb9953..a0946e62 100644 --- a/.github/workflows/reusable_validate_plugins.yaml +++ b/.github/workflows/reusable_validate_plugins.yaml @@ -33,6 +33,8 @@ jobs: if: inputs.arch == 'x86_64' runs-on: ubuntu-latest container: golang:1.18 + env: + GOFLAGS: '-buildvcs=false' steps: - name: Checkout code uses: actions/checkout@v3 @@ -67,6 +69,9 @@ jobs: mkdir -p /etc/falco/falco mkdir -p /usr/share/falco/plugins + + # avoids git exit status 128: detected dubious ownership in repository + git config --global --add safe.directory $(pwd) for plugin_name in $loaded_plugins; do echo Installing locally-built plugin "$plugin_name"...