diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 4db9356..3be1d41 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -30,12 +30,12 @@ jobs: uses: actions/checkout@v3 - name: Build the container image - uses: docker/build-push-action@v3.1.0 + uses: docker/build-push-action@v3.3.1 with: repository: berty-discord-webhook - name: Push to GitHub Packages - uses: docker/build-push-action@v3.1.0 + uses: docker/build-push-action@v3.3.1 if: github.event_name == 'release' || github.event_name == 'push' with: username: ${{ github.actor }} @@ -66,7 +66,7 @@ jobs: if: | (github.event_name == 'release' || github.event_name == 'push') && contains(steps.check_dockerhub_credentials.outputs.missingsecrets, 'no') - uses: docker/build-push-action@v3.1.0 + uses: docker/build-push-action@v3.3.1 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index b784ddd..b94f4f9 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -53,13 +53,13 @@ jobs: with: go-version: ${{ matrix.golang }} - name: Cache Go modules - uses: actions/cache@v3.0.7 + uses: actions/cache@v3.3.3 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ matrix.golang }}-v1-${{ hashFiles('**/go.sum') }} restore-keys: ${{ runner.os }}-go-${{ matrix.golang }}-v1- - name: Run GoReleaser (Dry Run) - uses: goreleaser/goreleaser-action@v3.0.0 + uses: goreleaser/goreleaser-action@v3.2.0 with: version: latest args: release --rm-dist --snapshot --skip-publish @@ -73,7 +73,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: golangci-lint - uses: golangci/golangci-lint-action@v3.2.0 + uses: golangci/golangci-lint-action@v3.7.1 with: version: ${{ matrix.golangci_lint }} #github-token: ${{ secrets.GITHUB_TOKEN }} @@ -112,7 +112,7 @@ jobs: uses: actions/setup-go@v3 with: go-version: ${{ matrix.golang }} - - uses: actions/cache@v3.0.7 + - uses: actions/cache@v3.3.3 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ matrix.golang }}-v1-${{ hashFiles('**/go.sum') }} @@ -128,7 +128,7 @@ jobs: git --no-pager diff go.mod go.sum git --no-pager diff --quiet go.mod go.sum - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3.1.0 + uses: codecov/codecov-action@v3.1.6 with: #token: ${{ secrets.CODECOV_TOKEN }} file: ./coverage.txt @@ -156,7 +156,7 @@ jobs: uses: actions/setup-go@v3 with: go-version: ${{ matrix.golang }} - - uses: actions/cache@v3.0.7 + - uses: actions/cache@v3.3.3 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ matrix.golang }}-v1-${{ hashFiles('**/go.sum') }} @@ -172,7 +172,7 @@ jobs: - name: Run tests on Unix-like operating systems run: make unittest - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3.1.0 + uses: codecov/codecov-action@v3.1.6 with: #token: ${{ secrets.CODECOV_TOKEN }} file: ./coverage.txt diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ed43658..2603347 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,7 +37,7 @@ jobs: - name: Cache Go modules if: steps.semantic.outputs.new-release-published == 'true' && steps.repoman.outputs.has-go-binary == 'true' - uses: actions/cache@v3.0.7 + uses: actions/cache@v3.3.3 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ matrix.golang }}-v1-${{ hashFiles('**/go.sum') }} @@ -45,7 +45,7 @@ jobs: - name: Run GoReleaser if: steps.semantic.outputs.new-release-published == 'true' && steps.repoman.outputs.has-go-binary == 'true' - uses: goreleaser/goreleaser-action@v3.0.0 + uses: goreleaser/goreleaser-action@v3.2.0 with: version: latest args: release --rm-dist diff --git a/.github/workflows/scorecards.yml b/.github/workflows/scorecards.yml index 4271825..91b5625 100644 --- a/.github/workflows/scorecards.yml +++ b/.github/workflows/scorecards.yml @@ -22,7 +22,7 @@ jobs: steps: - name: "Checkout code" - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.0 + uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 with: persist-credentials: false @@ -30,7 +30,7 @@ jobs: env: SCORECARD_READ_TOKEN: ${{ secrets.SCORECARD_READ_TOKEN }} if: env.SCORECARD_READ_TOKEN != null - uses: ossf/scorecard-action@68bf5b3327e4fd443d2add8ab122280547b4a16d # v1.0.4 + uses: ossf/scorecard-action@ce330fde6b1a5c9c75b417e7efc510b822a35564 # v1.1.2 with: results_file: results.sarif results_format: sarif @@ -48,7 +48,7 @@ jobs: env: SCORECARD_READ_TOKEN: ${{ secrets.SCORECARD_READ_TOKEN }} if: env.SCORECARD_READ_TOKEN != null - uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.0.0 + uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3 with: name: SARIF file path: results.sarif diff --git a/Dockerfile b/Dockerfile index cce1d28..793599c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ ARG VCS_REF ARG VERSION # build -FROM golang:1.18.4-alpine as builder +FROM golang:1.22.3-alpine as builder RUN apk add --no-cache git gcc musl-dev make ENV GO111MODULE=on WORKDIR /go/src/moul.io/berty-discord-webhook @@ -14,7 +14,7 @@ COPY . ./ RUN make install # minimalist runtime -FROM alpine:3.16.1 +FROM alpine:3.20.0 LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.name="berty-discord-webhook" \ org.label-schema.description="" \ diff --git a/go.mod b/go.mod index a4c5aa5..c1c8dce 100644 --- a/go.mod +++ b/go.mod @@ -3,14 +3,14 @@ module moul.io/berty-discord-webhook go 1.13 require ( - berty.tech/berty/v2 v2.426.0 - github.com/gtuk/discordwebhook v1.0.1-0.20220609025812-cb8946075ce5 - github.com/mdp/qrterminal/v3 v3.0.0 + berty.tech/berty/v2 v2.470.3 + github.com/gtuk/discordwebhook v1.2.0 + github.com/mdp/qrterminal/v3 v3.2.0 github.com/oklog/run v1.1.0 - github.com/peterbourgon/ff/v3 v3.1.2 + github.com/peterbourgon/ff/v3 v3.4.0 github.com/tailscale/depaware v0.0.0-20210622194025-720c4b409502 - go.uber.org/goleak v1.1.12 - go.uber.org/zap v1.21.0 + go.uber.org/goleak v1.3.0 + go.uber.org/zap v1.27.0 google.golang.org/grpc v1.42.0 moul.io/climan v1.0.0 moul.io/motd v1.0.0 @@ -22,10 +22,10 @@ replace ( bazil.org/fuse => bazil.org/fuse v0.0.0-20200117225306-7b5117fecadc // specific version for iOS building github.com/agl/ed25519 => github.com/agl/ed25519 v0.0.0-20170116200512-5312a6153412 // latest commit before the author shutdown the repo; see https://github.com/golang/go/issues/20504 github.com/libp2p/go-libp2p-rendezvous => github.com/berty/go-libp2p-rendezvous v0.0.0-20211013085524-09965cd64781 // use berty fork of go-libp2p-rendezvous with sqlcipher support - github.com/lucas-clemente/quic-go => github.com/lucas-clemente/quic-go v0.25.0 + github.com/lucas-clemente/quic-go => github.com/lucas-clemente/quic-go v0.44.0 github.com/multiformats/go-multiaddr => github.com/berty/go-multiaddr v0.4.2-0.20220126184027-53e56f02fb68 // tmp, required for Android SDK30 - github.com/mutecomm/go-sqlcipher/v4 => github.com/berty/go-sqlcipher/v4 v4.0.0-20211104165006-2c524b646cf0 + github.com/mutecomm/go-sqlcipher/v4 => github.com/berty/go-sqlcipher/v4 v4.4.2 github.com/peterbourgon/ff/v3 => github.com/moul/ff/v3 v3.0.1 // temporary, see https://github.com/peterbourgon/ff/pull/67, https://github.com/peterbourgon/ff/issues/68 golang.org/x/mobile => github.com/aeddi/mobile v0.0.4 // temporary, see https://github.com/golang/mobile/pull/58 ) diff --git a/tool/lint/package.json b/tool/lint/package.json index 81b1272..aef3243 100644 --- a/tool/lint/package.json +++ b/tool/lint/package.json @@ -2,7 +2,7 @@ "dependencies": { "alex": "10.0.0", "markdown-spellcheck": "1.3.1", - "markdownlint-cli": "0.31.1", + "markdownlint-cli": "0.40.0", "remark-cli": "11.0.0", "remark-lint": "9.1.1" }