Skip to content

Commit

Permalink
Fix 404s (#802)
Browse files Browse the repository at this point in the history
  • Loading branch information
eversC authored Jul 7, 2023
1 parent 58f5ac8 commit b5d5d4e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ require (
github.com/google/go-github/v45 v45.2.0
github.com/jszwedko/go-circleci v0.3.0
github.com/mongodb/go-client-mongodb-atlas v0.3.0
github.com/ovotech/cloud-key-client v0.4.1
github.com/ovotech/cloud-key-client v0.4.2
github.com/ovotech/mantle v0.32.3
github.com/spf13/cobra v1.6.1
github.com/spf13/viper v1.15.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,8 @@ github.com/openlyinc/pointy v1.1.2 h1:LywVV2BWC5Sp5v7FoP4bUD+2Yn5k0VNeRbU5vq9jUM
github.com/openlyinc/pointy v1.1.2/go.mod h1:w2Sytx+0FVuMKn37xpXIAyBNhFNBIJGR/v2m7ik1WtM=
github.com/ovotech/cloud-key-client v0.4.1 h1:88WT3iJKX1hs9KKyP+hCUxnFkeor15xBaPaLD/MP1h4=
github.com/ovotech/cloud-key-client v0.4.1/go.mod h1:GE+dvpLfk42JW0jX2Hzs8Gocjj4vWlliZTIq9W2Z0Ns=
github.com/ovotech/cloud-key-client v0.4.2 h1:NpHyTqBTyQV7uvJlcbCB1rgFhyRMHUZq82zV3/l2Gu4=
github.com/ovotech/cloud-key-client v0.4.2/go.mod h1:GE+dvpLfk42JW0jX2Hzs8Gocjj4vWlliZTIq9W2Z0Ns=
github.com/ovotech/mantle v0.32.3 h1:LNqEYlotYhbxcDIrU476c3B+vhAQ92kdCjeNdbaZxjU=
github.com/ovotech/mantle v0.32.3/go.mod h1:bSrueYEoP2Tt3DMrXvSsia+WLM7tv5C2nc1Rdi0Mrh4=
github.com/pelletier/go-buffruneio v0.2.0/go.mod h1:JkE26KsDizTr40EUHkXVtNPvgGtbSNq5BcowyYOWdKo=
Expand Down
4 changes: 2 additions & 2 deletions pkg/location/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
crypto_rand "crypto/rand"
"encoding/base64"
"fmt"
"strings"
"net/url"

"github.com/ovotech/cloud-key-rotator/pkg/cred"

Expand Down Expand Up @@ -65,7 +65,7 @@ func (github GitHub) Write(serviceAccountName string, keyWrapper KeyWrapper, cre
repo, _, err := client.Repositories.Get(ctx, github.Owner, github.Repo)
repoID := repo.GetID()
// encode forwardslash character (which is valid in GitHub environment names), otherwise it'll break a REST API call
env := strings.Replace(github.Env, "/", "%2F", -1)
env := url.PathEscape(github.Env)

if len(keyIDEnvVar) > 0 {
if err = addEnvOrRepoSecret(ctx, actionsService, github.Owner, github.Repo, env, keyIDEnvVar, keyWrapper.KeyID, repoID); err != nil {
Expand Down

0 comments on commit b5d5d4e

Please sign in to comment.