Skip to content

Commit

Permalink
fix: correct some issues
Browse files Browse the repository at this point in the history
  • Loading branch information
saman2000hoseini committed Jul 11, 2023
1 parent 760043a commit 2334034
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 24 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,9 @@ on:
tags: [ v* ]

jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: latest
test:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.19'
- run: go test -v ./... -covermode=atomic -coverprofile=coverage.out
- uses: codecov/codecov-action@v1
with:
files: coverage.out
docker:
name: docker
runs-on: ubuntu-latest
needs:
- lint
- test
steps:
- uses: actions/checkout@v2
- uses: docker/setup-qemu-action@v1
Expand Down
5 changes: 5 additions & 0 deletions internal/webhook-proxy/handler/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ func (p *Proxy) proxyRequest(body []byte, url string) bool {
}

responseBody, err := io.ReadAll(resp.Body)
if err != nil {
logrus.Errorf("proxy request to element error: %s", err)
return false
}

logrus.Errorf("proxy request to element error: %s", responseBody)
return false
}

0 comments on commit 2334034

Please sign in to comment.