mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-16 03:48:09 +00:00
Update remaining jinja docs (#2838)
* Add new command * Update remaining jinja templates and references to use scriban
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
OneFuzz can create or update [Github Issues](https://guides.github.com/features/issues/)
|
||||
upon creation of crash reports in OneFuzz managed [containers](../containers.md).
|
||||
|
||||
Nearly every field can be customized using [jinja2](https://jinja.palletsprojects.com/)
|
||||
Nearly every field can be customized using [scriban](https://github.com/scriban/scriban)
|
||||
templates. There are multiple python objects provided via the template engine that
|
||||
can be used such that any arbitrary component can be used to flesh out the configuration:
|
||||
|
||||
@ -43,7 +43,7 @@ There are additional values that can be used in any template:
|
||||
"organization": "contoso",
|
||||
"repository": "sample-project",
|
||||
"title": "{{ report.executable }} - {{report.crash_site}}",
|
||||
"body": "## Files\n\n* input: [{{ report.input_blob.name }}]({{ input_url }})\n* exe: [{{ report.executable }}]( {{ target_url }})\n* report: [{{ report_filename }}]({{ report_url }})\n\n## Repro\n\n `{{ repro_cmd }}`\n\n## Call Stack\n\n```{% for item in report.call_stack %}{{ item }}\n{% endfor %}```\n\n## ASAN Log\n\n```{{ report.asan_log }}```",
|
||||
"body": "## Files\n\n* input: [{{ report.input_blob.name }}]({{ input_url }})\n* exe: [{{ report.executable }}]( {{ target_url }})\n* report: [{{ report_filename }}]({{ report_url }})\n\n## Repro\n\n `{{ repro_cmd }}`\n\n## Call Stack\n\n```{{ for item in report.call_stack }}{{ item }}\n{{ end }}```\n\n## ASAN Log\n\n```{{ report.asan_log }}```",
|
||||
"unique_search": {
|
||||
"field_match": ["title"],
|
||||
"string": "{{ report.executable }}"
|
||||
@ -76,4 +76,4 @@ issues will be created and updated based on the reports.
|
||||
|
||||
The OneFuzz SDK provides an example tool [fake-report.py](../../src/cli/examples/fake-report.py),
|
||||
which can be used to generate a synthetic crash report to verify the integration
|
||||
is functional.
|
||||
is functional.
|
||||
|
Reference in New Issue
Block a user