Skip to content

Commit

Permalink
chore: auto-bump golang patch versions (#6711)
Browse files Browse the repository at this point in the history
Signed-off-by: chenk <hen.keinan@gmail.com>
  • Loading branch information
chen-keinan authored and knqyf263 committed May 20, 2024
1 parent 113a5b2 commit 013f71a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/auto-update-labels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
- 'misc/triage/labels.yaml'
branches:
- main

env:
GO_VERSION: '1.22'
jobs:
deploy:
name: Auto-update labels
Expand All @@ -17,7 +18,8 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
# cf. https://github.com/aquasecurity/trivy/pull/6711
go-version: ${{ env.GO_VERSION }}

- name: Install aqua tools
uses: aquaproj/aqua-installer@v3.0.0
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/reusable-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:

env:
GH_USER: "aqua-bot"
GO_VERSION: '1.22'

jobs:
release:
Expand Down Expand Up @@ -76,7 +77,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version: ${{ env.GO_VERSION }}
cache: false # Disable cache to avoid free space issues during `Post Setup Go` step.

- name: Generate SBOM
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
- 'mkdocs.yml'
- 'LICENSE'
merge_group:
env:
GO_VERSION: '1.22'
jobs:
test:
name: Test
Expand All @@ -30,8 +32,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod

go-version: ${{ env.GO_VERSION }}
- name: go mod tidy
run: |
go mod tidy
Expand Down Expand Up @@ -84,7 +85,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version: ${{ env.GO_VERSION }}

- name: Install tools
uses: aquaproj/aqua-installer@v3.0.0
Expand Down Expand Up @@ -113,7 +114,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version: ${{ env.GO_VERSION }}

- name: Install tools
uses: aquaproj/aqua-installer@v3.0.0
Expand All @@ -133,7 +134,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version: ${{ env.GO_VERSION }}

- name: Install tools
uses: aquaproj/aqua-installer@v3.0.0
Expand Down Expand Up @@ -164,7 +165,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version: ${{ env.GO_VERSION }}
- name: Install tools
uses: aquaproj/aqua-installer@v3.0.0
with:
Expand Down Expand Up @@ -198,7 +199,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version: ${{ env.GO_VERSION }}

- name: Determine GoReleaser ID
id: goreleaser_id
Expand Down

0 comments on commit 013f71a

Please sign in to comment.