sarif-ruby 0.1.0 → 0.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 79bce3486dd120e26e0263dcb1bb6b2a9d927c5e75390563eaa78c08cab73065
4
- data.tar.gz: a8265311c18e62d73ed428b75f7a019355a2122566569e67f8095aa3b3322df0
3
+ metadata.gz: cc7a25244f3277ce9dffbf15611e95951f6bbadf9ab2946b21592dcaa2f4d8cc
4
+ data.tar.gz: e0286cf35a8310a26e3cf3d07efb8cb3015cb982e116b1b63ff0e092f0321b4f
5
5
  SHA512:
6
- metadata.gz: acaaf4c0aee7cbbb54efa9eb7a77d8d2ecf5a033fde1fa7a7606dc1b6559b38d4bf745f38349a5c7e9c0f36ebcbf84bc9dfd84a0ef681f155775be426b8a11f2
7
- data.tar.gz: 12337301a09f56547993e8468d632b6b1d9816e58e9cf0378b5bf5eb2045477dc2e7e24672ff2fa681561d5980b096b6ca141d5136827cbd26ce3e45707774f8
6
+ metadata.gz: 3d263a1772ece449694aadce3f0f3a662233af89ad53b28804638e8fdf1389e936828d33491a5ff352a38ee5d85f33116d832e14215799b43c3c6cf5d40a1aa3
7
+ data.tar.gz: ad6cb63d5ad082744ee846a456ab61ce1d40cea8a09942b437aaa6f9de173491e94865f48c13a801aa945d41546ccfc0bd0e1dc5c83f7fac952cf624f780e7bd
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.1] - 2026-06-19
4
+
5
+ - `Run#to_h` now emits `"results": []` when `results` is explicitly set to an empty array, instead of omitting the key. SARIF distinguishes absent (no results produced) from empty (scan completed, nothing found), and GitHub's `upload-sarif` action rejects runs without a `results` key.
6
+
3
7
  ## [0.1.0] - 2026-01-07
4
8
 
5
9
  - Initial release
data/lib/sarif/run.rb CHANGED
@@ -47,7 +47,7 @@ module Sarif
47
47
  h["artifacts"] = @artifacts&.map(&:to_h) if @artifacts&.any?
48
48
  h["logicalLocations"] = @logical_locations&.map(&:to_h) if @logical_locations&.any?
49
49
  h["graphs"] = @graphs&.map(&:to_h) if @graphs&.any?
50
- h["results"] = @results&.map(&:to_h) if @results&.any?
50
+ h["results"] = @results.map(&:to_h) unless @results.nil?
51
51
  h["automationDetails"] = @automation_details&.to_h unless @automation_details.nil?
52
52
  h["runAggregates"] = @run_aggregates&.map(&:to_h) if @run_aggregates&.any?
53
53
  h["baselineGuid"] = @baseline_guid unless @baseline_guid.nil?
data/lib/sarif/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sarif
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sarif-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Nesbitt
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  - !ruby/object:Gem::Version
101
101
  version: '0'
102
102
  requirements: []
103
- rubygems_version: 4.0.1
103
+ rubygems_version: 4.0.6
104
104
  specification_version: 4
105
105
  summary: Ruby SDK for SARIF (Static Analysis Results Interchange Format)
106
106
  test_files: []