Skip to content

Add a setting to allow anonymous access to individual gists while still RequireLogin everywhere else #436

Add a setting to allow anonymous access to individual gists while still RequireLogin everywhere else

Add a setting to allow anonymous access to individual gists while still RequireLogin everywhere else #436

Triggered via pull request May 12, 2024 00:09
Status Failure
Total duration 2m 28s
Artifacts

go.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

13 errors and 5 warnings
check
Process completed with exit code 2.
test (macOS-latest, 1.22): internal/web/test/auth_test.go#L113
unknown field Private in struct literal of type db.GistDTO
test (macOS-latest, 1.22)
Process completed with exit code 2.
lint: internal/web/test/auth_test.go#L113
unknown field Private in struct literal of type db.GistDTO (typecheck)
lint: internal/auth/auth.go#L17
S1002: should omit comparison to bool constant, can be simplified to `!require` (gosimple)
lint: internal/web/test/server.go#L1
: # github.com/thomiceli/opengist/internal/web/test [github.com/thomiceli/opengist/internal/web/test.test]
lint: internal/web/test/auth_test.go#L113
unknown field Private in struct literal of type db.GistDTO (typecheck)
lint: internal/auth/auth.go#L17
S1002: should omit comparison to bool constant, can be simplified to `!require` (gosimple)
lint
issues found
test (ubuntu-latest, 1.22): internal/web/test/auth_test.go#L113
unknown field Private in struct literal of type db.GistDTO
test (ubuntu-latest, 1.22)
Process completed with exit code 2.
test (windows-latest, 1.22): internal/web/test/auth_test.go#L113
unknown field Private in struct literal of type db.GistDTO
test (windows-latest, 1.22)
Process completed with exit code 1.
check
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-go@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test (macOS-latest, 1.22)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-go@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-go@v4, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test (ubuntu-latest, 1.22)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-go@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test (windows-latest, 1.22)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-go@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.