Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,26 @@ on:
tags:
pull_request:

permissions:
contents: read
packages: write

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: checkout
uses: actions/checkout@v6
with:
persist-credentials: false

- name: set up go
uses: actions/setup-go@v6
with:
go-version: "1.24"
id: go

- name: checkout
uses: actions/checkout@v6

- name: free disk space
run: |
sudo rm -rf /usr/share/dotnet
Expand All @@ -48,11 +51,11 @@ jobs:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: set up QEMU
uses: docker/setup-qemu-action@v3
uses: docker/setup-qemu-action@v4

- name: set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@v4

- name: available platforms
run: echo ${{ steps.buildx.outputs.platforms }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/claude-code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
uses: actions/checkout@v6
with:
fetch-depth: 1
persist-credentials: false

- name: Run Claude Code Review
id: claude-review
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/claude.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
uses: actions/checkout@v6
with:
fetch-depth: 1
persist-credentials: false

- name: Run Claude Code
id: claude
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
tags:
- '*'

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
Expand All @@ -13,14 +16,15 @@ jobs:
uses: actions/checkout@v6
with:
fetch-depth: 0
persist-credentials: false

- name: set up go
uses: actions/setup-go@v6
with:
go-version: 1.24

- name: run goreleaser
uses: goreleaser/goreleaser-action@v6
uses: goreleaser/goreleaser-action@v7
with:
version: latest
args: release --clean
Expand Down
11 changes: 11 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ linters:
- nestif
- errorlint
settings:
gosec:
excludes:
- G118
- G120
- G705
goconst:
min-len: 2
min-occurrences: 2
Expand Down Expand Up @@ -47,6 +52,12 @@ linters:
- linters:
- staticcheck
text: at least one file in a package should have a package comment
- linters:
- prealloc
text: "Consider preallocating"
- linters:
- staticcheck
text: "QF1012"
- linters:
- dupl
- gosec
Expand Down
Loading