From 5cdc0804065ac6bb9f136456eb7b2127950061eb Mon Sep 17 00:00:00 2001 From: Katrina Verey Date: Wed, 1 Feb 2023 17:22:46 -0500 Subject: [PATCH 1/2] Update cmd/config to v0.11.0 --- kustomize/go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kustomize/go.mod b/kustomize/go.mod index 6ae56d4087..5e77520704 100644 --- a/kustomize/go.mod +++ b/kustomize/go.mod @@ -9,7 +9,7 @@ require ( github.com/stretchr/testify v1.8.1 golang.org/x/text v0.6.0 sigs.k8s.io/kustomize/api v0.12.1 - sigs.k8s.io/kustomize/cmd/config v0.10.9 + sigs.k8s.io/kustomize/cmd/config v0.11.0 sigs.k8s.io/kustomize/kyaml v0.14.0 sigs.k8s.io/yaml v1.3.0 ) From 7e3ad538900b7c86fe8fe08c7905ca87671debb4 Mon Sep 17 00:00:00 2001 From: Katrina Verey Date: Wed, 1 Feb 2023 17:25:57 -0500 Subject: [PATCH 2/2] Allow cloud build to authenticate to gh when generating changelog --- releasing/cloudbuild.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/releasing/cloudbuild.yaml b/releasing/cloudbuild.yaml index 131e98554f..41c90b1002 100644 --- a/releasing/cloudbuild.yaml +++ b/releasing/cloudbuild.yaml @@ -43,6 +43,8 @@ steps: entrypoint: /bin/bash dir: myClone secretEnv: ['GITHUB_TOKEN'] + env: + - 'GITHUB_USERNAME=KnVerey' # used to make authenticated curl requests to Github in releasing/compile-changelog.sh args: - releasing/cloudbuild.sh - $TAG_NAME @@ -59,6 +61,7 @@ timeout: 14m # The base64 of that is shown below. It's decrypted by cloud build # and provided back to goreleaser. # IMPORTANT: make sure the token does not end with a newline when you encrypt it! +# IMPORTANT: update the GITHUB_USERNAME env var above to match the github user whose token this is secrets: - kmsKeyName: projects/k8s-staging-kustomize/locations/global/keyRings/kust-cloud-key-ring/cryptoKeys/kust-cloud-key-name secretEnv: