From 9b3064ec6363fac72c01fcdcae51efcb1da89bed Mon Sep 17 00:00:00 2001 From: Mike Cobbett <77053+techcobweb@users.noreply.github.com> Date: Wed, 24 Jan 2024 13:13:35 +0000 Subject: [PATCH 1/2] Adding dependabot to try it out Signed-off-by: Mike Cobbett <77053+techcobweb@users.noreply.github.com> --- .dependabot | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .dependabot diff --git a/.dependabot b/.dependabot new file mode 100644 index 00000000..81c33fa0 --- /dev/null +++ b/.dependabot @@ -0,0 +1,11 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + - package-ecosystem: "gomod" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "weekly" \ No newline at end of file From 374776c120768e85664197978a0f7c7d35bf5bbd Mon Sep 17 00:00:00 2001 From: Mike Cobbett <77053+techcobweb@users.noreply.github.com> Date: Tue, 30 Jan 2024 12:58:12 +0000 Subject: [PATCH 2/2] stop annoying stack trace when jwt can't be read from a file Signed-off-by: Mike Cobbett <77053+techcobweb@users.noreply.github.com> --- pkg/errors/errorMessage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/errors/errorMessage.go b/pkg/errors/errorMessage.go index 807ccfc9..aae18c46 100644 --- a/pkg/errors/errorMessage.go +++ b/pkg/errors/errorMessage.go @@ -192,7 +192,7 @@ var ( GALASA_ERROR_QUERY_CPS_FAILED = NewMessageType("GAL1103E: Could not query CPS results. Reason: '%s'", 1103, STACK_TRACE_WANTED) GALASA_ERROR_UNABLE_TO_DELETE_BEARER_TOKEN_FILE = NewMessageType("GAL1104E: Unable to delete the bearer token file '%s'.", 1104, STACK_TRACE_NOT_WANTED) GALASA_ERROR_RETRIEVING_BEARER_TOKEN_FROM_API_SERVER = NewMessageType("GAL1106E: Could not get security bearer token from API server. Reason: '%s'. Please ensure you have allocated a personal access token and configured your client program by storing it in your galasactl.properties file together with the related client ID and secret", 1106, STACK_TRACE_WANTED) - GALASA_ERROR_RETRIEVING_BEARER_TOKEN_FROM_FILE = NewMessageType("GAL1107E: Could not get security bearer token from file '%s'. Reason: '%s'. Please ensure you are authenticated by running 'galasactl auth login' and that your personal access token has not expired or been revoked", 1107, STACK_TRACE_WANTED) + GALASA_ERROR_RETRIEVING_BEARER_TOKEN_FROM_FILE = NewMessageType("GAL1107E: Could not get security bearer token from file '%s'. Reason: '%s'. Please ensure you are authenticated by running 'galasactl auth login' and that your personal access token has not expired or been revoked", 1107, STACK_TRACE_NOT_WANTED) GALASA_ERROR_INVALID_BEARER_TOKEN = NewMessageType("GAL1108E: Invalid bearer token. Please ensure you are authenticated by running 'galasactl auth login' and that your personal access token has not expired or been revoked", 1108, STACK_TRACE_NOT_WANTED) GALASA_ERROR_UNABLE_TO_GET_FILE_NAME = NewMessageType("GAL1109E: Unable to access the file. Reason: '%s'", 1109, STACK_TRACE_WANTED) GALASA_ERROR_COULD_NOT_GET_YAML_CONTENT = NewMessageType("GAL1110E: Could not retrieve the content of the file provided. Reason: '%s'", 1110, STACK_TRACE_WANTED)