Skip to content

Commit

Permalink
Fix failing CI
Browse files Browse the repository at this point in the history
Signed-off-by: nyagamunene <[email protected]>
  • Loading branch information
nyagamunene committed Sep 24, 2024
1 parent 554a554 commit df7e74b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
6 changes: 4 additions & 2 deletions cli/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package cli
import (
"encoding/json"
"fmt"
"io/fs"
"os"
"path/filepath"

Expand All @@ -15,6 +16,8 @@ import (
"github.com/spf13/cobra"
)

const fileMode = fs.FileMode(600)

var (
// Limit query parameter.
Limit uint64 = 10
Expand Down Expand Up @@ -86,8 +89,7 @@ func saveToFile(filename string, content []byte) error {
}

filePath := filepath.Join(cwd, filename)

err = os.WriteFile(filePath, content, 0600)
err = os.WriteFile(filePath, content, fileMode)
if err != nil {
return fmt.Errorf("failed to write file %s: %w", filename, err)
}
Expand Down
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ require (
github.com/hokaccha/go-prettyjson v0.0.0-20211117102719-0474bc63780f
github.com/jackc/pgx/v5 v5.6.0
github.com/jmoiron/sqlx v1.4.0
github.com/lib/pq v1.10.9
github.com/ory/dockertest/v3 v3.11.0
github.com/pelletier/go-toml v1.9.5
github.com/prometheus/client_golang v1.19.1
Expand Down
1 change: 0 additions & 1 deletion service.go
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,6 @@ func (s *service) getSubject(options SubjectOptions) pkix.Name {
}

func (s *service) rotateCA(ctx context.Context, ctype CertType) error {

switch ctype {
case RootCA:
certificates, err := s.repo.GetCAs(ctx)
Expand Down

0 comments on commit df7e74b

Please sign in to comment.