Skip to content

Commit

Permalink
Upgrade GO to 1.19.x (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
omerzi authored Nov 15, 2022
1 parent 7209681 commit 577e19f
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.18.x
go-version: 1.19.x

# Generate mocks
- name: Generate mocks
Expand All @@ -27,7 +27,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.18.x
go-version: 1.19.x
- name: Install gosec
run: curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -b $(go env GOPATH)/bin
- name: Run gosec
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/frogbot-scan-and-fix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.18.x
go-version: 1.19.x

- uses: jfrog/frogbot@v2
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/frogbot-scan-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.18.x
go-version: 1.19.x

- uses: jfrog/frogbot@v2
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.18.x
go-version: 1.19.x
- name: Install npm
uses: actions/setup-node@v3
with:
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.18.x
go-version: 1.19.x

- name: Checkout code
uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions commands/utils/mavenutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ package utils

import (
"encoding/xml"
"io/ioutil"
"os"
"path/filepath"
"regexp"
"strings"
)

func GetVersionProperties(projectPath string, depToPropertyMap map[string][]string) error {
contentBytes, err := ioutil.ReadFile(filepath.Join(projectPath, "pom.xml")) // #nosec G304
contentBytes, err := os.ReadFile(filepath.Join(projectPath, "pom.xml")) // #nosec G304
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/jfrog/frogbot

go 1.18
go 1.19

require (
github.com/go-git/go-git/v5 v5.4.2
Expand Down
2 changes: 1 addition & 1 deletion starter-workflows/code-scanning/frogbot-scan-and-fix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

# - uses: actions/setup-go@v3
# with:
# go-version: 1.18.x
# go-version: 1.19.x

# - uses: actions/setup-java@v3
# with:
Expand Down
2 changes: 1 addition & 1 deletion starter-workflows/code-scanning/frogbot-scan-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

# - uses: actions/setup-go@v3
# with:
# go-version: 1.18.x
# go-version: 1.19.x

# - uses: actions/setup-java@v3
# with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.18.x
go-version: 1.19.x

- uses: jfrog/frogbot@v2
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.18.x
go-version: 1.19.x

- uses: jfrog/frogbot@v2
env:
Expand Down

0 comments on commit 577e19f

Please sign in to comment.