From 5d44a135bc29c3a8d732b41f967eac6ddd4bfc6a Mon Sep 17 00:00:00 2001 From: Andreas Fritzler Date: Sun, 26 Nov 2023 19:49:17 +0100 Subject: [PATCH] Update golangci-lint to in GH workflow - Update golangci-lint in GH workflow to v1.55.2 - Use pull_request in size workflow and set correct workflow permissions --- .github/workflows/golangci-lint.yml | 2 +- .github/workflows/size-label.yml | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 33716ec..59544d3 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -17,4 +17,4 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: - version: v1.53.3 + version: v1.55.2 diff --git a/.github/workflows/size-label.yml b/.github/workflows/size-label.yml index c2bc990..160b211 100644 --- a/.github/workflows/size-label.yml +++ b/.github/workflows/size-label.yml @@ -1,11 +1,14 @@ name: Size Label on: - pull_request_target: + pull_request: types: [opened, reopened, synchronize] jobs: size-label: + permissions: + contents: read + pull-requests: write runs-on: ubuntu-latest steps: - name: size-label