diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 548e974..661d84d 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -35,11 +35,11 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2.4.0 + uses: actions/checkout@v4.1.1 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -50,7 +50,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v2 + uses: github/codeql-action/autobuild@v3 # ℹī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -64,4 +64,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index dafab56..6d028fb 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -13,15 +13,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2.4.0 + uses: actions/checkout@v4.1.1 - name: Build the container image - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 with: repository: repoman - name: Push to GitHub Packages - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 if: github.event_name == 'release' || github.event_name == 'push' with: username: ${{ github.actor }} @@ -52,7 +52,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 + uses: docker/build-push-action@v5 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index e0595e7..69c8522 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -34,13 +34,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2.4.0 + uses: actions/checkout@v4.1.1 - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.golang }} - name: Cache Go modules - uses: actions/cache@v2.1.7 + uses: actions/cache@v4.0.2 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ matrix.golang }}-v1-${{ hashFiles('**/go.sum') }} @@ -58,9 +58,9 @@ jobs: matrix: golangci_lint: [v1.53.3] steps: - - uses: actions/checkout@v2.4.0 + - uses: actions/checkout@v4.1.1 - name: golangci-lint - uses: golangci/golangci-lint-action@v3.2.0 + uses: golangci/golangci-lint-action@v4.0.0 with: version: ${{ matrix.golangci_lint }} #github-token: ${{ secrets.GITHUB_TOKEN }} @@ -74,9 +74,9 @@ jobs: matrix: golang: [1.20.x] steps: - - uses: actions/checkout@v2.4.0 + - uses: actions/checkout@v4.1.1 - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.golang }} - name: Run tests on Windows @@ -92,12 +92,12 @@ jobs: OS: macos-latest GOLANG: ${{ matrix.golang }} steps: - - uses: actions/checkout@v2.4.0 + - uses: actions/checkout@v4.1.1 - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.golang }} - - uses: actions/cache@v2.1.7 + - uses: actions/cache@v4.0.2 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ matrix.golang }}-v1-${{ hashFiles('**/go.sum') }} @@ -112,7 +112,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@v2.1.0 + uses: codecov/codecov-action@v4.2.0 with: #token: ${{ secrets.CODECOV_TOKEN }} file: ./coverage.txt @@ -130,12 +130,12 @@ jobs: OS: ubuntu-latest GOLANG: ${{ matrix.golang }} steps: - - uses: actions/checkout@v2.4.0 + - uses: actions/checkout@v4.1.1 - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.golang }} - - uses: actions/cache@v2.1.7 + - uses: actions/cache@v4.0.2 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ matrix.golang }}-v1-${{ hashFiles('**/go.sum') }} @@ -150,7 +150,7 @@ jobs: - name: Run tests on Unix-like operating systems run: make unittest - name: Upload coverage to Codecov - uses: codecov/codecov-action@v2.1.0 + uses: codecov/codecov-action@v4.2.0 with: #token: ${{ secrets.CODECOV_TOKEN }} file: ./coverage.txt diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 1c22f29..7471f16 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -12,7 +12,7 @@ jobs: name: Release-Notes Preview runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2.4.0 + - uses: actions/checkout@v4.1.1 - run: | git fetch --prune --unshallow --tags - uses: snyk/release-notes-preview@v1.6.2 @@ -26,7 +26,7 @@ jobs: name: Documentation runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2.4.0 + - uses: actions/checkout@v4.1.1 with: depth: 1 - uses: nosborn/github-action-markdown-cli@master diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ad2cede..03f4336 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,26 +15,26 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2.4.0 + uses: actions/checkout@v4.1.1 - name: Unshallow run: git fetch --prune --unshallow - name: Run Semantic Release id: semantic - uses: docker://ghcr.io/codfish/semantic-release-action:v1 + uses: docker://ghcr.io/codfish/semantic-release-action:v3 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Set up Go if: steps.semantic.outputs.new-release-published == 'true' - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.golang }} - name: Cache Go modules if: steps.semantic.outputs.new-release-published == 'true' - uses: actions/cache@v2.1.7 + uses: actions/cache@v4.0.2 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ matrix.golang }}-v1-${{ hashFiles('**/go.sum') }} @@ -42,7 +42,7 @@ jobs: - name: Run GoReleaser if: steps.semantic.outputs.new-release-published == 'true' - uses: goreleaser/goreleaser-action@v2.8.1 + uses: goreleaser/goreleaser-action@v5.0.0 with: version: latest args: release --clean diff --git a/go.mod b/go.mod index e13a585..4b89b5e 100644 --- a/go.mod +++ b/go.mod @@ -1,32 +1,103 @@ module moul.io/repoman -go 1.13 +go 1.21 + +toolchain go1.22.2 require ( - github.com/BurntSushi/toml v1.3.2 // indirect github.com/Masterminds/semver v1.5.0 - github.com/fatih/color v1.15.0 // indirect github.com/github/hub/v2 v2.14.3-0.20210319163717-c8e68d548a39 github.com/go-git/go-git/v5 v5.8.1 github.com/google/go-github/v35 v35.3.0 - github.com/google/go-querystring v1.1.0 // indirect + github.com/google/go-github/v61 v61.0.0 github.com/hokaccha/go-prettyjson v0.0.0-20211117102719-0474bc63780f - github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect - github.com/mattn/go-isatty v0.0.19 // indirect - github.com/mitchellh/go-homedir v1.1.0 // indirect github.com/peterbourgon/ff/v3 v3.4.0 - github.com/sergi/go-diff v1.3.1 // indirect github.com/tailscale/depaware v0.0.0-20210622194025-720c4b409502 - go.uber.org/atomic v1.11.0 // indirect go.uber.org/goleak v1.1.12 go.uber.org/multierr v1.11.0 go.uber.org/zap v1.24.0 golang.org/x/mod v0.12.0 golang.org/x/sync v0.3.0 - golang.org/x/tools v0.11.1 // indirect moul.io/motd v1.0.0 moul.io/multipmuri v1.14.0 moul.io/srand v1.6.1 moul.io/u v1.27.0 moul.io/zapconfig v1.4.0 ) + +require ( + dario.cat/mergo v1.0.0 // indirect + github.com/BurntSushi/toml v1.3.2 // indirect + github.com/Microsoft/go-winio v0.6.1 // indirect + github.com/ProtonMail/go-crypto v0.0.0-20230717121422-5aa5874ade95 // indirect + github.com/acomagu/bufpipe v1.0.4 // indirect + github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be // indirect + github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 // indirect + github.com/atotto/clipboard v0.0.0-20171229224153-bc5958e1c833 // indirect + github.com/benbjohnson/clock v1.1.0 // indirect + github.com/bwesterb/go-ristretto v1.2.3 // indirect + github.com/cloudflare/circl v1.3.3 // indirect + github.com/creack/pty v1.1.9 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/elazarl/goproxy v0.0.0-20221015165544-a0805db90819 // indirect + github.com/elazarl/goproxy/ext v0.0.0-20190711103511-473e67f1d7d2 // indirect + github.com/emirpasic/gods v1.18.1 // indirect + github.com/fatih/color v1.15.0 // indirect + github.com/gliderlabs/ssh v0.3.5 // indirect + github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect + github.com/go-git/go-billy/v5 v5.4.1 // indirect + github.com/go-git/go-git-fixtures/v4 v4.3.2-0.20230305113008-0c11038e723f // indirect + github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect + github.com/google/go-cmp v0.6.0 // indirect + github.com/google/go-querystring v1.1.0 // indirect + github.com/google/renameio v0.1.0 // indirect + github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect + github.com/jessevdk/go-flags v1.5.0 // indirect + github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect + github.com/kevinburke/ssh_config v1.2.0 // indirect + github.com/kisielk/gotool v1.0.0 // indirect + github.com/kr/pretty v0.3.1 // indirect + github.com/kr/pty v1.1.1 // indirect + github.com/kr/text v0.2.0 // indirect + github.com/matryer/is v1.2.0 // indirect + github.com/mattn/go-colorable v0.1.13 // indirect + github.com/mattn/go-isatty v0.0.19 // indirect + github.com/mitchellh/go-homedir v1.1.0 // indirect + github.com/mmcloughlin/avo v0.5.0 // indirect + github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect + github.com/pelletier/go-toml v1.9.5 // indirect + github.com/pjbgf/sha1cd v0.3.0 // indirect + github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e // indirect + github.com/pkg/errors v0.9.1 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/rogpeppe/go-charset v0.0.0-20180617210344-2471d30d28b4 // indirect + github.com/rogpeppe/go-internal v1.9.0 // indirect + github.com/russross/blackfriday v0.0.0-20180526075726-670777b536d3 // indirect + github.com/sergi/go-diff v1.3.1 // indirect + github.com/shurcooL/sanitized_anchor_name v0.0.0-20170918181015-86672fcb3f95 // indirect + github.com/sirupsen/logrus v1.9.0 // indirect + github.com/skeema/knownhosts v1.2.0 // indirect + github.com/stretchr/objx v0.4.0 // indirect + github.com/stretchr/testify v1.8.0 // indirect + github.com/xanzy/ssh-agent v0.3.3 // indirect + github.com/yuin/goldmark v1.4.13 // indirect + go.uber.org/atomic v1.11.0 // indirect + go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee // indirect + golang.org/x/arch v0.1.0 // indirect + golang.org/x/crypto v0.11.0 // indirect + golang.org/x/lint v0.0.0-20190930215403-16217165b5de // indirect + golang.org/x/net v0.12.0 // indirect + golang.org/x/sys v0.10.0 // indirect + golang.org/x/term v0.10.0 // indirect + golang.org/x/text v0.11.0 // indirect + golang.org/x/tools v0.11.1 // indirect + golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect + gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect + gopkg.in/errgo.v2 v2.1.0 // indirect + gopkg.in/warnings.v0 v0.1.2 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect + honnef.co/go/tools v0.0.1-2019.2.3 // indirect + moul.io/banner v1.0.1 // indirect + rsc.io/pdf v0.1.1 // indirect +) diff --git a/go.sum b/go.sum index a570759..0fb6269 100644 --- a/go.sum +++ b/go.sum @@ -56,8 +56,10 @@ github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-github/v35 v35.3.0 h1:fU+WBzuukn0VssbayTT+Zo3/ESKX9JYWjbZTLOTEyho= github.com/google/go-github/v35 v35.3.0/go.mod h1:yWB7uCcVWaUbUP74Aq3whuMySRMatyRmq5U9FTNlbio= +github.com/google/go-github/v61 v61.0.0/go.mod h1:0WR+KmsWX75G2EbpyGsGmradjo3IiciuI4BmdVCobQY= github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= diff --git a/tool/lint/package.json b/tool/lint/package.json index 1fc0ac6..8a21caf 100644 --- a/tool/lint/package.json +++ b/tool/lint/package.json @@ -1,6 +1,6 @@ { "dependencies": { - "alex": "10.0.0", + "alex": "11.0.1", "markdown-spellcheck": "1.3.1", "markdownlint-cli": "0.31.0", "remark-cli": "10.0.1",