-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 🐛 Prevent CVE-2023-44487 https://osv.dev/vulnerability/GO-2023-2102 --------- Signed-off-by: Christian Zunker <[email protected]>
- Loading branch information
Showing
6 changed files
with
39 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
golang-version=1.21.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,21 +8,20 @@ on: | |
- '**.mod' | ||
- 'go.sum' | ||
|
||
env: | ||
GO_VERSION: ">=1.21.0" | ||
|
||
jobs: | ||
# Check if there is any dirty change for go mod tidy | ||
go-mod: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Import environment variables from file | ||
run: cat ".github/env" >> $GITHUB_ENV | ||
- name: Install Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
cache: false | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
go-version: ">=${{ env.golang-version }}" | ||
cache: false | ||
- name: Check go mod | ||
run: | | ||
go mod tidy | ||
|
@@ -32,13 +31,15 @@ jobs: | |
golangci-lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Import environment variables from file | ||
run: cat ".github/env" >> $GITHUB_ENV | ||
- name: Install Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
cache: false | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
go-version: ">=${{ env.golang-version }}" | ||
cache: false | ||
- name: Run golangci-lint | ||
uses: golangci/[email protected] | ||
with: | ||
|
@@ -48,13 +49,15 @@ jobs: | |
go-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Import environment variables from file | ||
run: cat ".github/env" >> $GITHUB_ENV | ||
- name: Install Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
cache: false | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
go-version: ">=${{ env.golang-version }}" | ||
cache: false | ||
# https://github.com/actions/cache/blob/main/examples.md#go---modules | ||
- uses: actions/cache@v3 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters