Skip to content

Commit 0c53b2f

Browse files
committed
clean up ci permissions and update golangci-lint
1 parent 3bd6e8d commit 0c53b2f

File tree

6 files changed

+13
-1
lines changed

6 files changed

+13
-1
lines changed

.github/workflows/build-samples.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
branches: [ "main" ]
88
workflow_dispatch:
99

10+
permissions: {}
11+
1012
jobs:
1113
# Build a single-arch nginx image for each arch.
1214
build-nginx-on-all-arches:

.github/workflows/build.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
push:
77
branches: [ "main" ]
88

9+
permissions: {}
10+
911
jobs:
1012
build:
1113
name: build

.github/workflows/codeql.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ on:
1919
schedule:
2020
- cron: '36 8 * * 6'
2121

22+
permissions: {}
23+
2224
jobs:
2325
analyze:
2426
name: Analyze (${{ matrix.language }})

.github/workflows/go-tests.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
pull_request:
77
branches: [ "main" ]
88

9+
permissions: {}
10+
911
jobs:
1012
test:
1113
runs-on: ubuntu-latest

.github/workflows/release.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
tags:
77
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
88

9+
permissions: {}
10+
911
jobs:
1012
cli:
1113
# Only release CLI for tagged releases

.github/workflows/verify.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
pull_request:
77
branches: [ "main" ]
88

9+
permissions: {}
10+
911
jobs:
1012
golangci:
1113
name: lint
@@ -24,7 +26,7 @@ jobs:
2426
- name: golangci-lint
2527
uses: golangci/golangci-lint-action@e60da84bfae8c7920a47be973d75e15710aa8bd7 # v6.3.0
2628
with:
27-
version: v1.61
29+
version: v1.63
2830

2931
- run: |
3032
make generate

0 commit comments

Comments
 (0)