From d96eff107b63e4c05a41fe912b266068429df8eb Mon Sep 17 00:00:00 2001 From: Ivan Milchev Date: Mon, 5 Feb 2024 16:30:24 +0200 Subject: [PATCH] make sure ci/cd test passes in github Signed-off-by: Ivan Milchev --- explorer/scan/discovery_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/explorer/scan/discovery_test.go b/explorer/scan/discovery_test.go index b3aac73566..6457efeaeb 100644 --- a/explorer/scan/discovery_test.go +++ b/explorer/scan/discovery_test.go @@ -203,13 +203,13 @@ func TestDiscoverAssets(t *testing.T) { t.Run("set ci/cd labels", func(t *testing.T) { inv := getInventory() inv.Spec.Assets[0].Category = inventory.AssetCategory_CATEGORY_CICD - require.NoError(t, os.Setenv("KUBERNETES_ADMISSION_CONTROLLER", "true")) + require.NoError(t, os.Setenv("GITHUB_ACTION", "go-test")) discoveredAssets, err := DiscoverAssets(context.Background(), inv, nil, providers.NullRecording{}) require.NoError(t, err) for _, asset := range discoveredAssets.Assets { require.Contains(t, asset.Asset.Labels, "mondoo.com/exec-environment") - assert.Equal(t, "k8s.mondoo.com", asset.Asset.Labels["mondoo.com/exec-environment"]) + assert.Equal(t, "actions.github.com", asset.Asset.Labels["mondoo.com/exec-environment"]) } }) }