github-security-report 0.13.0__tar.gz → 0.13.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. {github_security_report-0.13.0 → github_security_report-0.13.1}/PKG-INFO +1 -1
  2. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/_version.py +2 -2
  3. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/render/html.py +27 -0
  4. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/templates/report.html.j2 +6 -1
  5. {github_security_report-0.13.0 → github_security_report-0.13.1}/.gitignore +0 -0
  6. {github_security_report-0.13.0 → github_security_report-0.13.1}/LICENSE +0 -0
  7. {github_security_report-0.13.0 → github_security_report-0.13.1}/LICENSES/Apache-2.0.txt +0 -0
  8. {github_security_report-0.13.0 → github_security_report-0.13.1}/README.md +0 -0
  9. {github_security_report-0.13.0 → github_security_report-0.13.1}/pyproject.toml +0 -0
  10. {github_security_report-0.13.0 → github_security_report-0.13.1}/scripts/README.md +0 -0
  11. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/__init__.py +0 -0
  12. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/authors.py +0 -0
  13. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/categories.py +0 -0
  14. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/classify.py +0 -0
  15. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/cli/__init__.py +0 -0
  16. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/cli/__main__.py +0 -0
  17. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/cli/app.py +0 -0
  18. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/cli/boundary.py +0 -0
  19. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/cli/modes.py +0 -0
  20. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/cli/options.py +0 -0
  21. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/cli/outputs.py +0 -0
  22. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/cli/publish.py +0 -0
  23. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/cli/serialise.py +0 -0
  24. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/client/__init__.py +0 -0
  25. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/client/endpoints.py +0 -0
  26. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/client/org_reads.py +0 -0
  27. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/client/parsers.py +0 -0
  28. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/client/queries.py +0 -0
  29. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/client/reads.py +0 -0
  30. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/client/transport.py +0 -0
  31. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/client/writes.py +0 -0
  32. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/collect/__init__.py +0 -0
  33. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/collect/context.py +0 -0
  34. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/collect/extras.py +0 -0
  35. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/collect/org.py +0 -0
  36. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/collect/protocols.py +0 -0
  37. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/collect/repo.py +0 -0
  38. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/config/__init__.py +0 -0
  39. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/config/loader.py +0 -0
  40. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/config/models.py +0 -0
  41. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/config/order.py +0 -0
  42. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/config/schema.py +0 -0
  43. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/gating.py +0 -0
  44. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/gitctx.py +0 -0
  45. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/issues.py +0 -0
  46. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/layout.py +0 -0
  47. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/models.py +0 -0
  48. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/ordering.py +0 -0
  49. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/posture/__init__.py +0 -0
  50. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/posture/enablement.py +0 -0
  51. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/posture/facts.py +0 -0
  52. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/posture/releases.py +0 -0
  53. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/pulls/__init__.py +0 -0
  54. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/pulls/columns.py +0 -0
  55. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/pulls/counting.py +0 -0
  56. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/pulls/presentation.py +0 -0
  57. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/pulls/table.py +0 -0
  58. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/py.typed +0 -0
  59. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/remediate.py +0 -0
  60. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/render/__init__.py +0 -0
  61. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/render/markdown.py +0 -0
  62. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/render/slack.py +0 -0
  63. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/render/slack_limits.py +0 -0
  64. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/render/terminal.py +0 -0
  65. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/report/__init__.py +0 -0
  66. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/report/aggregate.py +0 -0
  67. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/report/display.py +0 -0
  68. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/report/signals.py +0 -0
  69. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/report/tables.py +0 -0
  70. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/rulesets.py +0 -0
  71. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/runner.py +0 -0
  72. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/scope.py +0 -0
  73. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/severity.py +0 -0
  74. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/summary.py +0 -0
  75. {github_security_report-0.13.0 → github_security_report-0.13.1}/src/github_security_report/templates/index.html.j2 +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: github-security-report
3
- Version: 0.13.0
3
+ Version: 0.13.1
4
4
  Summary: Security and quality reporting across GitHub organisations
5
5
  Project-URL: Homepage, https://github.com/lfreleng-actions/github-security-report-action
6
6
  Project-URL: Repository, https://github.com/lfreleng-actions/github-security-report-action
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
18
18
  commit_id: str | None
19
19
  __commit_id__: str | None
20
20
 
21
- __version__ = version = '0.13.0'
22
- __version_tuple__ = version_tuple = (0, 13, 0)
21
+ __version__ = version = '0.13.1'
22
+ __version_tuple__ = version_tuple = (0, 13, 1)
23
23
 
24
24
  __commit_id__ = commit_id = None
@@ -50,6 +50,31 @@ DATATABLES_JS_SRI = (
50
50
  "sha384-JYQd44jQWQbU+FdjWIUlbjzENGRHPdOQcj7dAgjJEvSyt2js5lE85kaPOdC53JVu"
51
51
  )
52
52
 
53
+ # Rows per page, and the page-size options offered above each table, as the
54
+ # ``(label, value)`` pairs Simple-DataTables accepts.
55
+ #
56
+ # The library ships 5/10/15/20/25, which are all smaller than a typical section
57
+ # here -- an org-wide table runs to a row per repository, so a reader comparing
58
+ # two of them spends the visit paging rather than reading. These steps roughly
59
+ # double instead.
60
+ #
61
+ # The final pair is what makes the scale complete rather than merely larger.
62
+ # Row limits may be set to ``0`` for no limit, so a table has no bound this
63
+ # list could be chosen to exceed; ``0`` is the library's own "one page, every
64
+ # row" value, which answers any size rather than guessing at a ceiling.
65
+ #
66
+ # This governs only how many rows are visible at once. How many reach the page
67
+ # at all is still the ``top_n`` limits' decision.
68
+ DATATABLES_PER_PAGE_OPTIONS: tuple[tuple[str, int], ...] = (
69
+ ("25", 25),
70
+ ("50", 50),
71
+ ("100", 100),
72
+ ("200", 200),
73
+ ("500", 500),
74
+ ("All", 0),
75
+ )
76
+ DATATABLES_PER_PAGE = 50
77
+
53
78
  _env = Environment(
54
79
  loader=PackageLoader("github_security_report", "templates"),
55
80
  autoescape=select_autoescape(["html", "j2"]),
@@ -276,6 +301,8 @@ def render_org_html(
276
301
  datatables_version=DATATABLES_VERSION,
277
302
  datatables_css_sri=DATATABLES_CSS_SRI,
278
303
  datatables_js_sri=DATATABLES_JS_SRI,
304
+ datatables_per_page=DATATABLES_PER_PAGE,
305
+ datatables_per_page_options=DATATABLES_PER_PAGE_OPTIONS,
279
306
  )
280
307
  )
281
308
 
@@ -134,7 +134,12 @@
134
134
  document.addEventListener('DOMContentLoaded', function () {
135
135
  document.querySelectorAll('table.dt-enabled').forEach(function (table) {
136
136
  if (table.querySelectorAll('tbody tr').length < 3) { return; }
137
- try { new simpleDatatables.DataTable(table, { perPage: 25 }); }
137
+ try {
138
+ new simpleDatatables.DataTable(table, {
139
+ perPage: {{ datatables_per_page }},
140
+ perPageSelect: [{% for label, rows in datatables_per_page_options %}["{{ label }}", {{ rows }}]{{ ", " if not loop.last }}{% endfor %}]
141
+ });
142
+ }
138
143
  catch (e) { console.error('DataTable init failed', e); }
139
144
  });
140
145
  });