-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from hilt86/main
documents github monitor analytic
- Loading branch information
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
title: "Plugin configuration" | ||
date: 2024-12-21 | ||
draft: false | ||
cascade: { type: "docs" } | ||
weight: 99 | ||
--- | ||
|
||
Documentation on different plugin's configuration options. | ||
|
||
- [Github Monitor](githubmonitor) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
title: Github Monitor | ||
date: 2024-12-17T12:00:00 | ||
draft: false | ||
weight: 1 | ||
--- | ||
|
||
1. Create a Github token at https://github.com/settings/tokens | ||
2. Pop that in `yeti.conf` | ||
3. Create a an indicator with the following essential details : | ||
* query text : (see [query template](#query-template) below) | ||
* query type : `github` | ||
* diamond model : depends on context | ||
|
||
![Example of the Github Monitor settings](github-monitor-example.png) | ||
|
||
Here are some gotchas: | ||
|
||
* The query type won't show up in the list - you need to type it in | ||
* The query text isn't really documented outside of the code for this plugin. | ||
The example in the code is missing an inverted comma. | ||
* You need to fill in the diamond model field. | ||
|
||
#### Query Template | ||
|
||
```json | ||
[ | ||
{ | ||
"type": "code", | ||
"query": "CVE-2024-49138 poc" | ||
} | ||
] | ||
``` |