From dacaef95a15c2109f3d8a3770347a0b068678cdc Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 12 Jan 2024 10:46:09 -0600 Subject: [PATCH] chore(deps): update all non-major dependencies (#506) --- .github/workflows/codeql-analysis.yml | 6 +++--- Dockerfile | 2 +- action/deployment/table.go | 4 ++-- action/deployment/table_test.go | 2 +- action/worker/get.go | 3 ++- go.mod | 10 +++++----- go.sum | 20 ++++++++++---------- 7 files changed, 24 insertions(+), 23 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index cca5729f..28451655 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -39,7 +39,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@407ffafae6a767df3e0230c3df91b6443ae8df75 # v2 + uses: github/codeql-action/init@8b7fcbfac2aae0e6c24d9f9ebd5830b1290b18e4 # v2 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@407ffafae6a767df3e0230c3df91b6443ae8df75 # v2 + uses: github/codeql-action/autobuild@8b7fcbfac2aae0e6c24d9f9ebd5830b1290b18e4 # v2 # ℹī¸ 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@407ffafae6a767df3e0230c3df91b6443ae8df75 # v2 + uses: github/codeql-action/analyze@8b7fcbfac2aae0e6c24d9f9ebd5830b1290b18e4 # v2 diff --git a/Dockerfile b/Dockerfile index 4d54d005..945b8a5e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ # docker build -t target/vela-cli:latest . # ################################################# -FROM alpine:3.18.4@sha256:eece025e432126ce23f223450a0326fbebde39cdf496a85d8c016293fc851978 +FROM alpine:3.19.0@sha256:51b67269f354137895d43f3b3d810bfacd3945438e94dc5ac55fdac340352f48 RUN apk add --update --no-cache ca-certificates diff --git a/action/deployment/table.go b/action/deployment/table.go index fd3592af..25b6c35a 100644 --- a/action/deployment/table.go +++ b/action/deployment/table.go @@ -49,7 +49,7 @@ func table(deployments *[]library.Deployment) error { // add a row to the table with the specified values // // https://pkg.go.dev/github.com/gosuri/uitable?tab=doc#Table.AddRow - table.AddRow(d.GetID(), d.GetTask(), d.GetUser(), d.GetRef(), d.GetTarget()) + table.AddRow(d.GetID(), d.GetTask(), d.GetCreatedBy(), d.GetRef(), d.GetTarget()) } // output the table in stdout format @@ -93,7 +93,7 @@ func wideTable(deployments *[]library.Deployment) error { // add a row to the table with the specified values // // https://pkg.go.dev/github.com/gosuri/uitable?tab=doc#Table.AddRow - table.AddRow(d.GetID(), d.GetTask(), d.GetUser(), d.GetRef(), d.GetTarget(), d.GetCommit(), d.GetDescription()) + table.AddRow(d.GetID(), d.GetTask(), d.GetCreatedBy(), d.GetRef(), d.GetTarget(), d.GetCommit(), d.GetDescription()) } // output the wide table in stdout format diff --git a/action/deployment/table_test.go b/action/deployment/table_test.go index aee3c1ec..715cc805 100644 --- a/action/deployment/table_test.go +++ b/action/deployment/table_test.go @@ -96,7 +96,7 @@ func testDeployment() *library.Deployment { d.SetID(1) d.SetRepoID(1) d.SetURL("https://api.github.com/repos/github/octocat/deployments/1") - d.SetUser("octocat") + d.SetCreatedBy("octocat") d.SetCommit("48afb5bdc41ad69bf22588491333f7cf71135163") d.SetRef("refs/heads/main") d.SetTask("vela-deploy") diff --git a/action/worker/get.go b/action/worker/get.go index 769da67b..ccb2b352 100644 --- a/action/worker/get.go +++ b/action/worker/get.go @@ -19,7 +19,8 @@ func (c *Config) Get(client *vela.Client) error { // send API call to capture a list of workers // // https://pkg.go.dev/github.com/go-vela/sdk-go/vela?tab=doc#WorkerService.GetAll - workers, _, err := client.Worker.GetAll() + // TODO: add ability to pass in filter options + workers, _, err := client.Worker.GetAll(nil) if err != nil { return err } diff --git a/go.mod b/go.mod index 2f390b55..be8e008c 100644 --- a/go.mod +++ b/go.mod @@ -10,18 +10,18 @@ require ( github.com/dustin/go-humanize v1.0.1 github.com/gin-gonic/gin v1.9.1 github.com/go-git/go-git/v5 v5.10.1 - github.com/go-vela/sdk-go v0.22.1-0.20231211213353-23e6a2ee9817 - github.com/go-vela/server v0.22.3-0.20231211205434-140d2b1492b7 - github.com/go-vela/types v0.22.1-0.20231211143329-1eae2f5e371b + github.com/go-vela/sdk-go v0.22.1-0.20240110210525-4a16c9235b7a + github.com/go-vela/server v0.22.3-0.20240105215421-78eca514b01d + github.com/go-vela/types v0.22.1-0.20240111192144-0d0e22367796 github.com/go-vela/worker v0.22.0 - github.com/golang-jwt/jwt/v5 v5.1.0 + github.com/golang-jwt/jwt/v5 v5.2.0 github.com/google/go-cmp v0.6.0 github.com/gosuri/uitable v0.0.4 github.com/joho/godotenv v1.5.1 github.com/manifoldco/promptui v0.9.0 github.com/sirupsen/logrus v1.9.3 github.com/spf13/afero v1.11.0 - github.com/urfave/cli/v2 v2.25.7 + github.com/urfave/cli/v2 v2.27.1 github.com/whilp/git-urls v1.0.0 gopkg.in/yaml.v3 v3.0.1 ) diff --git a/go.sum b/go.sum index 38df0b5c..9d741336 100644 --- a/go.sum +++ b/go.sum @@ -114,20 +114,20 @@ github.com/go-playground/validator/v10 v10.14.0 h1:vgvQWe3XCz3gIeFDm/HnTIbj6UGmg github.com/go-playground/validator/v10 v10.14.0/go.mod h1:9iXMNT7sEkjXb0I+enO7QXmzG6QCsPWY4zveKFVRSyU= github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 h1:tfuBGBXKqDEevZMzYi5KSi8KkcZtzBcTgAUUtapy0OI= github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572/go.mod h1:9Pwr4B2jHnOSGXyyzV8ROjYa2ojvAY6HCGYYfMoC3Ls= -github.com/go-vela/sdk-go v0.22.1-0.20231211213353-23e6a2ee9817 h1:YTvVN2nfMiU5EpSwN/Zwrxn/bixBB+y1EcwsEBB7bMU= -github.com/go-vela/sdk-go v0.22.1-0.20231211213353-23e6a2ee9817/go.mod h1:EVAthIAXxYtP6I/AxbzTJngTtgvLwrNtRLZ39TBqZtg= -github.com/go-vela/server v0.22.3-0.20231211205434-140d2b1492b7 h1:Ou1URiqOj+L56/3dzQgP5ov8dWRyOmW/N8aihZRxlX4= -github.com/go-vela/server v0.22.3-0.20231211205434-140d2b1492b7/go.mod h1:f8bWM2UGX+lKbCyaj11BQWQUSrc5pW7So0G+5BU7vkc= -github.com/go-vela/types v0.22.1-0.20231211143329-1eae2f5e371b h1:8rC4vEVWUFisc11LvGFOsVx76K1HmxxE+jub4s4sb0A= -github.com/go-vela/types v0.22.1-0.20231211143329-1eae2f5e371b/go.mod h1:ljNY36D6YkpObBbNF7Xslv3oxN4mGuQAwWhnnK/V06I= +github.com/go-vela/sdk-go v0.22.1-0.20240110210525-4a16c9235b7a h1:s95Qx5fPiK2eFJDu4vFudir57fWNt2MvcwP9+zzynTY= +github.com/go-vela/sdk-go v0.22.1-0.20240110210525-4a16c9235b7a/go.mod h1:EVAthIAXxYtP6I/AxbzTJngTtgvLwrNtRLZ39TBqZtg= +github.com/go-vela/server v0.22.3-0.20240105215421-78eca514b01d h1:cxFWuaKJEqn6yrgNTWiPIwwiYg+PvkFzvakJWSFL/rI= +github.com/go-vela/server v0.22.3-0.20240105215421-78eca514b01d/go.mod h1:whH2iqp3dZhBzo3z4AC/g9ChpDX/UO0ig+gZn24u58g= +github.com/go-vela/types v0.22.1-0.20240111192144-0d0e22367796 h1:fjma5QAoncoknvTOp2AL/qYDOt4liWkZS5+sUaCQKJw= +github.com/go-vela/types v0.22.1-0.20240111192144-0d0e22367796/go.mod h1:cax3mW1kVz/ioI8qltZE+wl9rOLgOPdwBIvCooL09e4= github.com/go-vela/worker v0.22.0 h1:zmGiuykclbd0cfH6XKpCnoeIagYhYt7CJQ/y5HfqjZk= github.com/go-vela/worker v0.22.0/go.mod h1:ErPzlBEBWgYcinlbscn5q+9iArIuajy1DO+Oe9Ya2NA= github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= -github.com/golang-jwt/jwt/v5 v5.1.0 h1:UGKbA/IPjtS6zLcdB7i5TyACMgSbOTiR8qzXgw8HWQU= -github.com/golang-jwt/jwt/v5 v5.1.0/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk= +github.com/golang-jwt/jwt/v5 v5.2.0 h1:d/ix8ftRUorsN+5eMIlF4T6J8CAt9rch3My2winC1Jw= +github.com/golang-jwt/jwt/v5 v5.2.0/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk= github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= @@ -282,8 +282,8 @@ github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08= github.com/ugorji/go/codec v1.2.11 h1:BMaWp1Bb6fHwEtbplGBGJ498wD+LKlNSl25MjdZY4dU= github.com/ugorji/go/codec v1.2.11/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg= -github.com/urfave/cli/v2 v2.25.7 h1:VAzn5oq403l5pHjc4OhD54+XGO9cdKVL/7lDjF+iKUs= -github.com/urfave/cli/v2 v2.25.7/go.mod h1:8qnjx1vcq5s2/wpsqoZFndg2CE5tNFyrTvS6SinrnYQ= +github.com/urfave/cli/v2 v2.27.1 h1:8xSQ6szndafKVRmfyeUMxkNUJQMjL1F2zmsZ+qHpfho= +github.com/urfave/cli/v2 v2.27.1/go.mod h1:8qnjx1vcq5s2/wpsqoZFndg2CE5tNFyrTvS6SinrnYQ= github.com/whilp/git-urls v1.0.0 h1:95f6UMWN5FKW71ECsXRUd3FVYiXdrE7aX4NZKcPmIjU= github.com/whilp/git-urls v1.0.0/go.mod h1:J16SAmobsqc3Qcy98brfl5f5+e0clUvg1krgwk/qCfE= github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM=