Skip to content

Add golang based hook-sdk - #3786

Merged
J12934 merged 10 commits into
secureCodeBox:mainfrom
J12934:feat/go-hook-sdk
Sep 9, 2026
Merged

J12934 merged 10 commits into
secureCodeBox:mainfrom
J12934:feat/go-hook-sdk

Conversation

@J12934

@J12934 J12934 commented Aug 25, 2026

Copy link
Copy Markdown
Member

Description

Also migrate fpp hook to have a test / example golang hook

We might migrate more hooks to golang in the future.

Checklist

  • Test your changes as thoroughly as possible before you commit them. Preferably, automate your test by unit/integration tests.
  • Make sure that all your commits are signed-off and that you are added to the Contributors file.
  • Make sure that all CI finish successfully.
  • Optional (but appreciated): Make sure that all commits are Verified.

@J12934 J12934 self-assigned this Aug 25, 2026
@J12934 J12934 added enhancement New feature or request hook Implement or update a hook labels Aug 25, 2026
@netlify

netlify Bot commented Aug 25, 2026

Copy link
Copy Markdown

Deploy Preview for docs-securecodebox canceled.

Name Link
🔨 Latest commit b050de3
🔍 Latest deploy log https://app.netlify.com/projects/docs-securecodebox/deploys/6aa0fdd36bf32700092d507a

@J12934 J12934 changed the title Add hook-sdk for golang hooks Add golang based hook-sdk Aug 25, 2026
@Weltraumschaf Weltraumschaf moved this from Triage to In Progress in secureCodeBox Aug 26, 2026
@J12934 J12934 moved this from In Progress to To Review in secureCodeBox Aug 31, 2026
Comment thread documentation/docs/api/finding.md Outdated
Comment thread hook-sdk/golang/sdk.go
Comment thread hooks/finding-post-processing/hook/handler.go Outdated
Comment thread hooks/finding-post-processing/hook/handler.go
Comment thread parser-sdk/nodejs/findings-schema.json Outdated
Comment thread hooks/finding-post-processing/hook/handler.go
Comment thread hook-sdk/golang/sdk.go
@github-project-automation github-project-automation Bot moved this from To Review to Reviewer Approved in secureCodeBox Sep 8, 2026
Also migrate fpp hook to have a test / example golang hook

Signed-off-by: Jannik Hollenbach <[email protected]>
Switchting back to additionalProperties: true to keep backwards
compatability. Opened up secureCodeBox#3797 as a follow up.

Signed-off-by: Jannik Hollenbach <[email protected]>
still properly passing

Signed-off-by: Jannik Hollenbach <[email protected]>
- have the hook request implement the methods in a more straight forward
  way
- pass in ctx into the hook function to keep best practices and ensure
  the funcs remain cancellable
- include a test helper in the sdk to keep hook boilerplate out of the
  hooks

Signed-off-by: Jannik Hollenbach <[email protected]>
Signed-off-by: Jannik Hollenbach <[email protected]>
were previously validated case insensitivly without normilization
afterwards

Signed-off-by: Jannik Hollenbach <[email protected]>
Signed-off-by: Jannik Hollenbach <[email protected]>
Signed-off-by: Jannik Hollenbach <[email protected]>
@sonarqubecloud

sonarqubecloud Bot commented Sep 9, 2026

Copy link
Copy Markdown

@J12934
J12934 merged commit 53167dd into secureCodeBox:main Sep 9, 2026
48 of 49 checks passed
@github-project-automation github-project-automation Bot moved this from Reviewer Approved to Done in secureCodeBox Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request hook Implement or update a hook

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants