Skip to content

Commit

Permalink
Fix package path. Fix token header
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-abtasty committed Mar 15, 2021
1 parent 9542e35 commit 2f9cd07
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion example/main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"gitlab/canarybay/aws/integration/code-analyser/pkg/handler"
"github/flagship-io/code-analyzer/pkg/handler"
"log"
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module gitlab/canarybay/aws/integration/code-analyser
module github/flagship-io/code-analyzer

go 1.16

Expand Down
4 changes: 2 additions & 2 deletions internal/files/api/syncFlags.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"encoding/json"
"fmt"
"gitlab/canarybay/aws/integration/code-analyser/internal/files/model"
"github/flagship-io/code-analyzer/internal/files/model"
"log"
"net/http"
"os"
Expand Down Expand Up @@ -53,7 +53,7 @@ func callAPI(envID string, flagInfos []FlagInfo) error {
log.Fatal("Error in request", err.Error())
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer "+os.Getenv("FLAGSHIP_TOKEN"))
req.Header.Set("X-API-TOKEN", os.Getenv("FLAGSHIP_TOKEN"))
resp, err := http.DefaultClient.Do(req)
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion internal/files/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package files

import (
"fmt"
"gitlab/canarybay/aws/integration/code-analyser/internal/files/model"
"github/flagship-io/code-analyzer/internal/files/model"
"io/ioutil"
"log"
"os"
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"gitlab/canarybay/aws/integration/code-analyser/pkg/handler"
"github/flagship-io/code-analyzer/pkg/handler"
"log"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/handler/extract.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package handler

import (
"gitlab/canarybay/aws/integration/code-analyser/internal/files"
"gitlab/canarybay/aws/integration/code-analyser/internal/files/model"
"github/flagship-io/code-analyzer/internal/files"
"github/flagship-io/code-analyzer/internal/files/model"
"log"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/handler/handler.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package handler

import (
"gitlab/canarybay/aws/integration/code-analyser/internal/files/api"
"github/flagship-io/code-analyzer/internal/files/api"
"log"
"os"
"strings"
Expand Down

0 comments on commit 2f9cd07

Please sign in to comment.