-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Harbor Project create Slack block kit message #1
Comments
Return Example from Trivy plugin written in Block Kit (harbor): {
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Harbor webhook events*"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*event_type:* PULL_ARTIFACT"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*occur_at:* <!date^1625472423^{date} at {time}|February 18th, 2014 at 6:39 AM PST>"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*operator:* robot$sii+Trivy-f8f7b404-dd67-11eb-862e-da87eeb3d283"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*event_data:*"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "```{\n\t\"resources\": [\n\t\t{\n\t\t\t\"digest\": \"sha256:23c638b11c3328f975b1c57eec97589f49e2dff2c04749e4d426ee4bac46f1c3\",\n\t\t\t\"tag\": \"sha256:23c638b11c3328f975b1c57ffc97589f49e2dee2c04749e4d426ee4bac46f1c3\",\n\t\t\t\"resource_url\": \"server.aaa.fr@sha256:23c638b11c3328f975b1c57eec97589f49e2dff2c04749e4d426ee4bac46f1c3\"\n\t\t}\n\t],\n\t\"repository\": {\n\t\t\"date_created\": 1611766474,\n\t\t\"name\": \"nuxeo-server\",\n\t\t\"namespace\": \"sii\",\n\t\t\"repo_full_name\": \"sii/nuxeo-server\",\n\t\t\"repo_type\": \"public\"\n\t}\n}```"
}
}
]
} |
Hi @pjenicot, it’s been a while since I touched this project, and I was thinking of bringing it up to date. It’s also been a while since I ran a Mattermost server at all, so I’m wondering if it supports the Block Kit format any better on its own yet. If you happen to see this, please let me know if you found another solution for supporting webhooks from Harbor (such as the Trivy plugin output you described above), or if this improvement would still be very beneficial. Thanks! |
Hello Alexander (@thinkmassive)
Thanks a lot for your development.
I use the application Harbor (Registry Docker) who create block kit to send notification on slack. (reference on goharbor/harbor project
But we use Mattermost as enterprise messaging server and your webhook proxy can help us to build a correct message.
If this can help you improve your development.
Have a good day
Pierre
The text was updated successfully, but these errors were encountered: