Skip to content

Commit

Permalink
ci: get go version from go mod
Browse files Browse the repository at this point in the history
  • Loading branch information
dwelch-spike committed Jun 29, 2023
1 parent 550b043 commit 91e7dd6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/snyk-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Get go version from go.mod
run: |
echo "GO_VERSION=$(grep '^go ' go.mod | cut -d " " -f 2)" >> $GITHUB_ENV
- name: Setup go version
uses: actions/setup-go@v4
with:
go-version: '^1.19.0' # This should match the Go version used on the internal build containers
go-version: ${{ env.GO_VERSION }}
- name: Install dependencies
run : |
make dependencies
Expand Down

0 comments on commit 91e7dd6

Please sign in to comment.