From ea165fb2470e27a143bfe1598928861bc03aeb9e Mon Sep 17 00:00:00 2001 From: Lucas Yoon Date: Mon, 4 Aug 2025 16:04:28 -0400 Subject: [PATCH] Updating go version 1.24, fixing linting errors, updated gosec version from 2.14.0 to 2.22.7 Signed-off-by: Lucas Yoon --- .github/workflows/go.yml | 2 +- .github/workflows/scorecard.yml | 2 +- CONTRIBUTING.md | 2 +- README.md | 2 +- go.mod | 2 +- pkg/devfile/generator/generators_test.go | 6 +++--- pkg/devfile/parser/data/helper.go | 3 +-- pkg/devfile/parser/utils.go | 6 ++---- pkg/devfile/parser/utils_test.go | 6 +++--- tests/v2/utils/library/test_utils.go | 18 +++++++++--------- 10 files changed, 23 insertions(+), 26 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index dbcca026..91862f5e 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -81,7 +81,7 @@ jobs: - name: Run Gosec Security Scanner run: | - go install github.com/securego/gosec/v2/cmd/gosec@v2.14.0 + go install github.com/securego/gosec/v2/cmd/gosec@v2.22.7 make gosec if [[ $? != 0 ]] then diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index 8cf248d1..34a527be 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -70,7 +70,7 @@ jobs: # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF # format to the repository Actions tab. - name: "Upload artifact" - uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0 + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: SARIF file path: results.sarif diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f4205c30..7e38b372 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -16,7 +16,7 @@ contribution. See the [DCO](./DCO) file for details. The following are required to work on devfile library: - Git -- Go 1.21 or later +- Go 1.24 or later ## Code of Conduct Before contributing to this repository, see [contributor code of conduct](https://github.com/devfile/api/blob/main/CODE_OF_CONDUCT.md#contributor-covenant-code-of-conduct) diff --git a/README.md b/README.md index dae58792..e8d3c7ef 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@