diff --git a/.github/workflows/ci-test-go.yml b/.github/workflows/ci-test-go.yml index e4edb04a1f..f78b1e680a 100644 --- a/.github/workflows/ci-test-go.yml +++ b/.github/workflows/ci-test-go.yml @@ -61,6 +61,19 @@ jobs: run: make gosec working-directory: KubeArmor + go-test: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-go@v3 + with: + go-version: "v1.20" + + - name: Run go test on the KubeArmor/KubeArmor directory + run: go test ./... + working-directory: KubeArmor + license: runs-on: ubuntu-20.04 steps: diff --git a/KubeArmor/core/karmorprobedata.go b/KubeArmor/core/karmorprobedata.go index bfb898095a..169b421cea 100644 --- a/KubeArmor/core/karmorprobedata.go +++ b/KubeArmor/core/karmorprobedata.go @@ -58,7 +58,7 @@ func (dm *KubeArmorDaemon) SetKarmorData() { kd.HostVisibility = dm.Node.Annotations["kubearmor-visibility"] err := kl.WriteToFile(kd, "/tmp/karmorProbeData.cfg") if err != nil { - dm.Logger.Errf("Error writing karmor config data", err) + dm.Logger.Errf("Error writing karmor config data (%s)", err.Error()) } }