From e46c7f9084eafef47267bf568ca93733dbf622ee Mon Sep 17 00:00:00 2001 From: Charlie Haley Date: Wed, 17 Apr 2024 19:52:18 +0100 Subject: [PATCH] update go and pipelines --- .github/workflows/release-chart.yaml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test-chart.yaml | 3 +++ .github/workflows/test.yml | 5 ++++- go.mod | 2 +- 5 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-chart.yaml b/.github/workflows/release-chart.yaml index 52ec0bd..19e41d0 100644 --- a/.github/workflows/release-chart.yaml +++ b/.github/workflows/release-chart.yaml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 35219e0..46a257e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,7 +10,7 @@ permissions: packages: write env: - GOLANG_VERSION: "1.20.x" + GOLANG_VERSION: "1.22.x" jobs: release: diff --git a/.github/workflows/test-chart.yaml b/.github/workflows/test-chart.yaml index 89fd3de..736b1e8 100644 --- a/.github/workflows/test-chart.yaml +++ b/.github/workflows/test-chart.yaml @@ -8,6 +8,9 @@ on: workflow_dispatch: pull_request: +permissions: + contents: read + jobs: test: runs-on: ubuntu-latest diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 61bb135..55e7933 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,8 +6,11 @@ on: pull_request: branches: [main] +permissions: + contents: read + env: - GOLANG_VERSION: "1.20.x" + GOLANG_VERSION: "1.22.x" jobs: test: diff --git a/go.mod b/go.mod index 6df15db..6b01f37 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/benthosdev/benthos-captain -go 1.20 +go 1.22 require ( github.com/go-logr/logr v1.2.4