Skip to content

Commit 7f35051

Browse files
authored
Merge pull request #35 from database-playground/ci-upgrade
chore: upgrade workflow
2 parents 3bd571d + 6b85bd4 commit 7f35051

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

.github/workflows/go-test.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,21 @@ on:
66
pull_request:
77
branches: [main]
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
test:
1114
name: Run Tests
1215
runs-on: ubuntu-latest
1316

1417
steps:
15-
- uses: actions/checkout@v5
18+
- uses: actions/checkout@v6
1619

1720
- name: Set up Go
18-
uses: actions/setup-go@v5
21+
uses: actions/setup-go@v6
1922
with:
2023
go-version-file: "go.mod"
21-
cache: true
2224

2325
- name: Install dependencies
2426
run: go mod download

.github/workflows/lint.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,19 @@ on:
66
pull_request:
77
branches: [main]
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
lint:
1114
name: Lint and Check Formatting
1215
runs-on: ubuntu-latest
1316

1417
steps:
15-
- uses: actions/checkout@v5
18+
- uses: actions/checkout@v6
1619

1720
- name: Set up Go
18-
uses: actions/setup-go@v5
21+
uses: actions/setup-go@v6
1922
with:
2023
go-version-file: "go.mod"
2124
cache: true
@@ -27,7 +30,7 @@ jobs:
2730
run: go generate .
2831

2932
- name: Lint with golangci-lint
30-
uses: golangci/golangci-lint-action@v8
33+
uses: golangci/golangci-lint-action@v9
3134
with:
3235
version: latest
3336

0 commit comments

Comments
 (0)