From 2ae4ea7ce6aad89badfef36badcf494e6ed9f24e Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Wed, 17 Jul 2024 15:33:47 +0200 Subject: [PATCH] Only ignore main and master, not all branches when pinning actions We used to ignore all actions that were referenced with a branch, but this is not really intuitive. Let's only ignore main and master. Relates: #175 --- pkg/utils/config/config.go | 2 +- pkg/utils/config/config_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/utils/config/config.go b/pkg/utils/config/config.go index 792b530..00b94f9 100644 --- a/pkg/utils/config/config.go +++ b/pkg/utils/config/config.go @@ -98,7 +98,7 @@ func DefaultConfig() *Config { return &Config{ GHActions: GHActions{ Filter: Filter{ - ExcludeBranches: []string{"*"}, + ExcludeBranches: []string{"main", "master"}, }, }, Images: Images{ diff --git a/pkg/utils/config/config_test.go b/pkg/utils/config/config_test.go index 19fbefd..b9e367e 100644 --- a/pkg/utils/config/config_test.go +++ b/pkg/utils/config/config_test.go @@ -137,7 +137,7 @@ images: GHActions: GHActions{ Filter: Filter{ Exclude: []string{"pattern1", "pattern2"}, - ExcludeBranches: []string{"*"}, + ExcludeBranches: []string{"main", "master"}, }, }, Images: Images{