Skip to content

Conversation

@ehsandeep
Copy link
Member

No description provided.

ehsandeep and others added 30 commits November 13, 2021 13:50
Bumps golang from 1.17.3-alpine to 1.17.4-alpine.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
…lang-1.17.4-alpine

chore(deps): bump golang from 1.17.3-alpine to 1.17.4-alpine
Bumps golang from 1.17.4-alpine to 1.17.5-alpine.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
…lang-1.17.5-alpine

chore(deps): bump golang from 1.17.4-alpine to 1.17.5-alpine
Bumps golang from 1.17.5-alpine to 1.17.6-alpine.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
…olang-1.17.6-alpine

chore(deps): bump golang from 1.17.5-alpine to 1.17.6-alpine
Bumps golang from 1.17.6-alpine to 1.17.7-alpine.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
…olang-1.17.7-alpine

chore(deps): bump golang from 1.17.6-alpine to 1.17.7-alpine
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 2 to 3.1.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](golangci/golangci-lint-action@v2...v3.1.0)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [go.uber.org/multierr](https://github.com/uber-go/multierr) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/uber-go/multierr/releases)
- [Changelog](https://github.com/uber-go/multierr/blob/master/CHANGELOG.md)
- [Commits](uber-go/multierr@v1.7.0...v1.8.0)

---
updated-dependencies:
- dependency-name: go.uber.org/multierr
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
…ns/dev/golangci/golangci-lint-action-3.1.0

chore(deps): bump golangci/golangci-lint-action from 2 to 3.1.0
Bumps golang from 1.17.7-alpine to 1.17.8-alpine.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
…ev/go.uber.org/multierr-1.8.0

chore(deps): bump go.uber.org/multierr from 1.7.0 to 1.8.0
…olang-1.17.8-alpine

chore(deps): bump golang from 1.17.7-alpine to 1.17.8-alpine
…ns/dev/actions/checkout-3

chore(deps): bump actions/checkout from 2 to 3
Bumps golang from 1.17.8-alpine to 1.18.0-alpine.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
…olang-1.18.0-alpine

chore(deps): bump golang from 1.17.8-alpine to 1.18.0-alpine
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 2 to 3.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](actions/setup-go@v2...v3)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [github.com/containrrr/shoutrrr](https://github.com/containrrr/shoutrrr) from 0.5.2 to 0.5.3.
- [Release notes](https://github.com/containrrr/shoutrrr/releases)
- [Changelog](https://github.com/containrrr/shoutrrr/blob/main/goreleaser.yml)
- [Commits](containrrr/shoutrrr@v0.5.2...v0.5.3)

---
updated-dependencies:
- dependency-name: github.com/containrrr/shoutrrr
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps golang from 1.18.0-alpine to 1.18.1-alpine.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
…olang-1.18.1-alpine

chore(deps): bump golang from 1.18.0-alpine to 1.18.1-alpine
…ev/github.com/containrrr/shoutrrr-0.5.3

chore(deps): bump github.com/containrrr/shoutrrr from 0.5.2 to 0.5.3
…ns/dev/actions/setup-go-3

chore(deps): bump actions/setup-go from 2 to 3
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 1 to 2.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@v1...v2)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
…ns/dev/github/codeql-action-2

chore(deps): bump github/codeql-action from 1 to 2
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 1 to 2.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](docker/setup-qemu-action@v1...v2)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [docker/login-action](https://github.com/docker/login-action) from 1 to 2.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](docker/login-action@v1...v2)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
dependabot bot and others added 18 commits May 9, 2022 23:07
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 2 to 3.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](docker/build-push-action@v2...v3)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps golang from 1.18.1-alpine to 1.18.2-alpine.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3.1.0 to 3.2.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](golangci/golangci-lint-action@v3.1.0...v3.2.0)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
…ns/dev/docker/setup-qemu-action-2

chore(deps): bump docker/setup-qemu-action from 1 to 2
…ns/dev/docker/login-action-2

chore(deps): bump docker/login-action from 1 to 2
…ns/dev/docker/build-push-action-3

chore(deps): bump docker/build-push-action from 2 to 3
…ns/dev/docker/setup-buildx-action-2

chore(deps): bump docker/setup-buildx-action from 1 to 2
…olang-1.18.2-alpine

chore(deps): bump golang from 1.18.1-alpine to 1.18.2-alpine
…ns/dev/golangci/golangci-lint-action-3.2.0

chore(deps): bump golangci/golangci-lint-action from 3.1.0 to 3.2.0
Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action) from 2 to 3.
- [Release notes](https://github.com/goreleaser/goreleaser-action/releases)
- [Commits](goreleaser/goreleaser-action@v2...v3)

---
updated-dependencies:
- dependency-name: goreleaser/goreleaser-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
…ns/dev/goreleaser/goreleaser-action-3

chore(deps): bump goreleaser/goreleaser-action from 2 to 3
* go.mod update to 1.17 and dependency synchronisation

* Docker file update to use go 1.18 and "go install" instead of "go get"

* Minor documentation updates

* GitHub action version updates

* goreleaser-action version fix

* Allow -bulk to work with stdin

* go mod update

* replaced helper function with lib

* Do chunked reading in -bulk mode

Reduces memory usage when input is big

Also includes the fix for #134 (makes testing easier)

* Move bulkSplitter to util.go

* Remove unused function

* Refactor bulkSplitter

Simplified looping. Also, we no longer truncate mid-line unless it's the first
line of a chunk (in such a case we have no option but to truncate). A truncated
line will be followed by an ellipsis. Otherwise we're splitting chunks at the
last possible newline without exceeding charLimit for that chunk.

* Bugfix: Always remove trailing newlines

* Bump shoutrrr for long message fixes

Inclues fixes for:

* containrrr/shoutrrr#238
  * Sending more than ~99 lines to Slack fails with too_many_attachments
* containrrr/shoutrrr#240
  * Sending 2000, 4000 or 6000 characters to Discord panics
* containrrr/shoutrrr#244
  * Sending 1999, 3999 or 5999 characters to Discord panics
  * (Incomplete fix for the above)

* minor changes

Co-authored-by: Sandeep Singh <sandeep@projectdiscovery.io>
Co-authored-by: forgedhallpass <13679401+forgedhallpass@users.noreply.github.com>
Co-authored-by: mzack <marco.rivoli.nvh@gmail.com>
Bumps golang from 1.18.2-alpine to 1.18.3-alpine.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* set buffer to file size, split line into multiple chunks if size is greater than char-limit

* fix typo
* go.mod update to 1.17 and dependency synchronisation

* Docker file update to use go 1.18 and "go install" instead of "go get"

* Minor documentation updates

* GitHub action version updates

* goreleaser-action version fix

* Add subject customization #118

Co-authored-by: Sandeep Singh <sandeep@projectdiscovery.io>
Co-authored-by: forgedhallpass <13679401+forgedhallpass@users.noreply.github.com>
* Revert "Fix notify silently fails (#146)"

This reverts commit 173f914.

* Emit logged lines to stdout, not stderr

Fixes #134 (this was previously fixed but got backed out in landing #130)

* Split lines as per CharLimit in non-bulk mode

Resolves #137

* Bubble up any Scanner errors

This surfaces the error that's causing #138:

'bufio.Scanner: token too long'

* Fix infinite loop with -char-limit <= len('...')

We're using '...' to indicate that a line has been truncated. If -char-limit
was less than the length of this ellipsis string, the scanner would never
terminate.

Raise an error if the charLimit given to a splitter is <= len('...')

* Ensure we never allow the Scanner buffer to fill

We know we never need more than CharLimit chars from the Scanner in one go

First of all, we ensure that the Scanner has a buffer which can hold at least
CharLimit chars.

Then we handle cases where the Scanner wants more data but we don't need it
to get more data. Thus it should never end up in a place where its internal
buffer is filled, and it should never return bufio.ErrToLong

Fixes #138

* fmt.print => gologger

Co-authored-by: mzack <marco.rivoli.nvh@gmail.com>
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@ehsandeep ehsandeep marked this pull request as ready for review June 16, 2022 21:03
@ehsandeep ehsandeep merged commit c9f7cc3 into master Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment