Sha256: dfe290a86fde145ff12cce7eadce41ce53cfb644fd8927fbd939fa023c0e0e51

Contents?: true

Size: 543 Bytes

Versions: 16

Compression:

Stored size: 543 Bytes

Contents

# If you use Gemnasium, you can pull CVE advisories in as Alerts.

require_relative "../../lib/gemnasium-alert"

Houston::Alerts.config.sync :open, "cve", every: "5m" do
  Gemnasium::Alert.open.map { |alert|
    advisory = alert["advisory"]
    { key: "#{alert["project_slug"]}-#{advisory["id"]}",
      number: advisory["id"],
      project_slug: alert["project_slug"],
      summary: advisory["title"],
      environment_name: "production",
      url: "https://gemnasium.com/#{alert["project_id"]}/alerts#advisory_#{advisory["id"]}" } }
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
houston-core-0.8.0.pre templates/new-instance/config/alerts/cves.rb
houston-core-0.7.0 templates/new-instance/config/alerts/cves.rb
houston-core-0.7.0.beta4 templates/new-instance/config/alerts/cves.rb
houston-core-0.7.0.beta3 templates/new-instance/config/alerts/cves.rb
houston-core-0.7.0.beta2 templates/new-instance/config/alerts/cves.rb
houston-core-0.7.0.beta templates/new-instance/config/alerts/cves.rb
houston-core-0.6.3 templates/new-instance/config/alerts/cves.rb
houston-core-0.6.2 templates/new-instance/config/alerts/cves.rb
houston-core-0.6.1 templates/new-instance/config/alerts/cves.rb
houston-core-0.6.0 templates/new-instance/config/alerts/cves.rb
houston-core-0.5.6 templates/new-instance/config/alerts/cves.rb
houston-core-0.5.5 templates/new-instance/config/alerts/cves.rb
houston-core-0.5.4 templates/new-instance/config/alerts/cves.rb
houston-core-0.5.3 templates/new-instance/config/alerts/cves.rb
houston-core-0.5.2 templates/new-instance/config/alerts/cves.rb
houston-core-0.5.1 templates/new-instance/config/alerts/cves.rb