diff --git a/.github/workflows/check-typos.yml b/.github/workflows/check-typos.yml new file mode 100644 index 0000000..94b3fa2 --- /dev/null +++ b/.github/workflows/check-typos.yml @@ -0,0 +1,17 @@ +name: check-typos + +on: + pull_request: + branches: + - master + +jobs: + check-typos: + name: Check typos + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Check for typos + uses: crate-ci/typos@v1.28.4 \ No newline at end of file diff --git a/internal/sidecar/config.go b/internal/sidecar/config.go index 7d7437b..ac6b01a 100644 --- a/internal/sidecar/config.go +++ b/internal/sidecar/config.go @@ -206,7 +206,7 @@ func writeConfig(path string, cfg *config.Config) error { // Now marshal to map for YAML. var jsonMap map[string]interface{} if jerr := json.Unmarshal(jsonData, &jsonMap); jerr != nil { - return fmt.Errorf("error unmarshaling json: %w", jerr) + return fmt.Errorf("error unmarshalling json: %w", jerr) } data, err := yaml.Marshal(jsonMap)