Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions packages/github/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,29 @@
# newer versions go on top
- version: "2.7.0"
changes:
- description: Improve handling of pagination end.
type: enhancement
link: https://github.com/elastic/integrations/pull/13965
- version: "2.6.1"
changes:
- description: Fix audit log URL for enterprises.
type: bugfix
link: http://github.com/elastic/integrations/pull/13183
link: https://github.com/elastic/integrations/pull/13183
- version: "2.6.0"
changes:
- description: Update audit ingest pipeline to cover all fields.
type: enhancement
link: http://github.com/elastic/integrations/pull/13092
link: https://github.com/elastic/integrations/pull/13092
- version: "2.5.0"
changes:
- description: Add Azure Eventhub support for audit logs.
type: enhancement
link: http://github.com/elastic/integrations/pull/13038
link: https://github.com/elastic/integrations/pull/13038
- version: "2.4.1"
changes:
- description: Add missing ECS field in latest_code_scanning transform.
type: bugfix
link: http://github.com/elastic/integrations/pull/12841
link: https://github.com/elastic/integrations/pull/12841
- version: "2.4.0"
changes:
- description: Update Kibana constraint to support 9.0.0.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ response.pagination:
target: url.value
value: '[[ getRFC5988Link "next" .last_response.header.Link ]]'
fail_on_template_error: true
do_not_log_failure: true

cursor:
last_timestamp:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ response.pagination:
target: url.value
value: '[[ getRFC5988Link "next" .last_response.header.Link ]]'
fail_on_template_error: true
do_not_log_failure: true

{{#if tags.length}}
tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,13 @@ response.pagination:
target: body.query
value: "query fetchRepoAlerts ($org: String!, $repo:String!, $cursor:String!) { repository(owner: $org, name: $repo) { vulnerabilityAlerts(first: 100, after: $cursor) { nodes { createdAt dependabotUpdate { error { body errorType title } pullRequest { createdAt closed closedAt merged mergedAt number url title } } dependencyScope dismissReason dismissedAt dismisser { login url } fixedAt number repository { description isInOrganization isPrivate name owner { login url } url } securityAdvisory { classification cvss { score vectorString } cwes(first:100) { nodes { cweId description name } } description ghsaId identifiers { type value } origin permalink references { url } publishedAt severity summary updatedAt withdrawnAt } securityVulnerability { firstPatchedVersion { identifier } package { ecosystem name } severity updatedAt vulnerableVersionRange } state vulnerableManifestPath vulnerableManifestFilename vulnerableRequirements } pageInfo { hasNextPage endCursor } } } }"
fail_on_template_error: true
do_not_log_failure: true

- set:
target: body.variables
value: "{\"org\": \"{{owner}}\", \"repo\": \"{{repo}}\", \"cursor\": \"[[ .last_response.body.data.repository.vulnerabilityAlerts.pageInfo.endCursor ]]\"}"
fail_on_template_error: true
do_not_log_failure: true
{{else}}
request.body:
query:
Expand All @@ -71,11 +73,13 @@ response.pagination:
target: body.query
value: "query fetchRepoAlerts ($org: String!, $cursor:String!) { organization(login: $org) { repositories(first: 10, after: $cursor) { nodes { vulnerabilityAlerts(first: 100) { nodes { createdAt dependabotUpdate { error { body errorType title } pullRequest { createdAt closed closedAt merged mergedAt number url title } } dependencyScope dismissReason dismissedAt dismisser { login url } fixedAt number repository { description isInOrganization isPrivate name owner { login url } url } securityAdvisory { classification cvss { score vectorString } cwes(first:2) { nodes { cweId description name } } description ghsaId identifiers { type value } origin permalink references { url } publishedAt severity summary updatedAt withdrawnAt } securityVulnerability { firstPatchedVersion { identifier } package { ecosystem name } severity updatedAt vulnerableVersionRange } state vulnerableManifestPath vulnerableManifestFilename vulnerableRequirements } pageInfo { hasNextPage endCursor } } } pageInfo { hasNextPage endCursor } } } }"
fail_on_template_error: true
do_not_log_failure: true

- set:
target: body.variables
value: "{\"org\": \"{{owner}}\", \"cursor\": \"[[ .last_response.body.data.organization.repositories.pageInfo.endCursor ]]\"}"
fail_on_template_error: true
do_not_log_failure: true

{{/if}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ response.pagination:
target: url.value
value: '[[ getRFC5988Link "next" .last_response.header.Link ]]'
fail_on_template_error: true
do_not_log_failure: true

{{#if tags.length}}
tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ response.pagination:
target: url.value
value: '[[ getRFC5988Link "next" .last_response.header.Link ]]'
fail_on_template_error: true
do_not_log_failure: true

{{#if tags.length}}
tags:
Expand Down
4 changes: 2 additions & 2 deletions packages/github/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: github
title: GitHub
version: "2.6.1"
version: "2.7.0"
description: Collect logs from GitHub with Elastic Agent.
type: integration
format_version: "3.0.2"
categories: [security, "productivity_security"]
conditions:
kibana:
version: "^8.13.0 || ^9.0.0"
version: "^8.15.0 || ^9.0.0"
icons:
- src: /img/github.svg
title: GitHub
Expand Down