1
1
mirror of https://github.com/go-gitea/gitea.git synced 2026-03-10 14:18:21 +01:00
gitea/services/webhook
silverwind f7f55a356f
Update tool dependencies and fix new lint issues (#36702)
## Summary
- Update golangci-lint v2.9.0 → v2.10.1, misspell v0.7.0 → v0.8.0,
actionlint v1.7.10 → v1.7.11
- Fix 20 new QF1012 staticcheck findings by using `fmt.Fprintf` instead
of `WriteString(fmt.Sprintf(...))`
- Fix SA1019: replace deprecated `ecdsa.PublicKey` field access with
`PublicKey.Bytes()` for JWK encoding, with SEC 1 validation and curve
derived from signing algorithm
- Add unit test for `ToJWK()` covering P-256, P-384, and P-521 curves,
also verifying correct coordinate padding per RFC 7518
- Remove dead staticcheck linter exclusion for "argument x is
overwritten before first use"

## Test plan
- [x] `make lint-go` passes with 0 issues
- [x] `go test ./services/oauth2_provider/ -run
TestECDSASigningKeyToJWK` passes for all curves

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 19:13:19 +00:00
..
deliver_test.go use experimental go json v2 library (#35392) 2025-09-28 08:03:36 +00:00
deliver.go Limit reading bytes instead of ReadAll (#35928) 2025-11-12 19:44:49 +08:00
dingtalk_test.go Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
dingtalk.go Bump golangci-lint to 2.7.2, enable modernize stringsbuilder (#36180) 2025-12-17 20:50:53 +00:00
discord_test.go Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
discord.go Update tool dependencies and fix new lint issues (#36702) 2026-02-26 19:13:19 +00:00
feishu_test.go Fix Feishu webhook signature verification (#34788) 2025-06-20 13:09:03 -07:00
feishu.go Update tool dependencies and fix new lint issues (#36702) 2026-02-26 19:13:19 +00:00
general_test.go Add tests for webhook and fix some webhook bugs (#33396) 2025-01-30 03:09:48 +00:00
general.go Refactor ActionsTaskID (#36503) 2026-01-31 22:01:08 -08:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
matrix_test.go use experimental go json v2 library (#35392) 2025-09-28 08:03:36 +00:00
matrix.go Update tool dependencies and fix new lint issues (#36702) 2026-02-26 19:13:19 +00:00
msteams_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
msteams.go Update tool dependencies and fix new lint issues (#36702) 2026-02-26 19:13:19 +00:00
notifier.go Reload issue when sending webhook to make num comments is right. (#35243) 2025-08-11 11:27:22 +00:00
packagist_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
packagist.go Add workflow_run api + webhook (#33964) 2025-06-20 20:14:00 +08:00
payloader.go Fix Feishu webhook signature verification (#34788) 2025-06-20 13:09:03 -07:00
slack_test.go Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
slack.go Update tool dependencies and fix new lint issues (#36702) 2026-02-26 19:13:19 +00:00
telegram_test.go Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
telegram.go Update tool dependencies and fix new lint issues (#36702) 2026-02-26 19:13:19 +00:00
webhook_test.go fix(webhook): prevent tag events from bypassing branch filters targets #35449 (#35567) 2025-10-03 08:51:57 +02:00
webhook.go fix(webhook): prevent tag events from bypassing branch filters targets #35449 (#35567) 2025-10-03 08:51:57 +02:00
wechatwork.go Update tool dependencies and fix new lint issues (#36702) 2026-02-26 19:13:19 +00:00