Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
- name: Generate token
id: app-token
uses: actions/create-github-app-token@v2
uses: actions/create-github-app-token@v3
with:
app-id: ${{ vars.LINTER_APP_ID }}
private-key: ${{ secrets.LINTER_PRIVATE_KEY }}
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,23 @@
cache: true

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

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Release' step
Uses Step
uses 'docker/setup-qemu-action' with ref 'v4', not a pinned commit hash

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

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Release' step
Uses Step
uses 'docker/setup-buildx-action' with ref 'v4', not a pinned commit hash

- uses: crazy-max/ghaction-upx@v3
- uses: crazy-max/ghaction-upx@v4

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Release' step
Uses Step
uses 'crazy-max/ghaction-upx' with ref 'v4', not a pinned commit hash
with:
install-only: true

- name: Log in to Docker Hub
uses: docker/login-action@v3
uses: docker/login-action@v4

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Release' step
Uses Step
uses 'docker/login-action' with ref 'v4', not a pinned commit hash
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Log in to the Container registry
uses: docker/login-action@v3
uses: docker/login-action@v4

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Release' step
Uses Step
uses 'docker/login-action' with ref 'v4', not a pinned commit hash
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down Expand Up @@ -130,7 +130,7 @@
if: ${{ github.ref_type == 'tag' && !endsWith(github.ref, '-nightly') }}

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
uses: goreleaser/goreleaser-action@v7

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Release' step
Uses Step
uses 'goreleaser/goreleaser-action' with ref 'v7', not a pinned commit hash
with:
distribution: goreleaser
version: ~> v2
Expand All @@ -139,7 +139,7 @@
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload assets
uses: actions/upload-artifact@v6
uses: actions/upload-artifact@v7
with:
name: libra
path: dist/*
3 changes: 2 additions & 1 deletion server/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ func (GoJSONSerializer) Deserialize(c echo.Context, i any) error {
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Unmarshal type error: expected=%v, got=%v, field=%v, offset=%v", ute.Type, ute.Value, ute.Field, ute.Offset)).
SetInternal(err)
} else if errors.As(err, &se) {
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Syntax error: offset=%v, error=%v", se.Offset, se.Error())).SetInternal(err)
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Syntax error: offset=%v, error=%v", se.Offset, se.Error())).
SetInternal(err)
}
return err
}
Loading