sarif_simple.sarif 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. {
  2. "$schema": "https://json.schemastore.org/sarif-2.1.0.json",
  3. "version": "2.1.0",
  4. "runs": [
  5. {
  6. "tool": {
  7. "driver": {
  8. "name": "gitleaks",
  9. "semanticVersion": "v8.0.0",
  10. "informationUri": "https://github.com/gitleaks/gitleaks",
  11. "rules": [
  12. {
  13. "id": "aws-access-key",
  14. "shortDescription": {
  15. "text": "AWS Access Key"
  16. }
  17. },
  18. {
  19. "id": "pypi",
  20. "shortDescription": {
  21. "text": "PyPI upload token"
  22. }
  23. }
  24. ]
  25. }
  26. },
  27. "results": [
  28. {
  29. "message": {
  30. "text": "test-rule has detected secret for file auth.py at commit 0000000000000000."
  31. },
  32. "ruleId": "test-rule",
  33. "locations": [
  34. {
  35. "physicalLocation": {
  36. "artifactLocation": {
  37. "uri": "auth.py"
  38. },
  39. "region": {
  40. "startLine": 1,
  41. "startColumn": 1,
  42. "endLine": 2,
  43. "endColumn": 2,
  44. "snippet": {
  45. "text": "a secret"
  46. }
  47. }
  48. }
  49. }
  50. ],
  51. "partialFingerprints": {
  52. "commitSha": "0000000000000000",
  53. "email": "johndoe@gmail.com",
  54. "author": "John Doe",
  55. "date": "10-19-2003",
  56. "commitMessage": "opps"
  57. },
  58. "properties": {
  59. "tags": [
  60. "tag1",
  61. "tag2",
  62. "tag3"
  63. ]
  64. }
  65. }
  66. ]
  67. }
  68. ]
  69. }