From 64508fbd3125c2d7fd75830ca77ebd51ceafdecb Mon Sep 17 00:00:00 2001 From: Brian Hensley <48165493+brnhensley@users.noreply.github.com> Date: Tue, 24 Dec 2024 11:39:40 -0800 Subject: [PATCH 1/2] chore: capitalize NRQL clauses --- .../integrations/snyk.mdx | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/content/docs/vulnerability-management/integrations/snyk.mdx b/src/content/docs/vulnerability-management/integrations/snyk.mdx index f99409e8145..e06ca5ffe68 100644 --- a/src/content/docs/vulnerability-management/integrations/snyk.mdx +++ b/src/content/docs/vulnerability-management/integrations/snyk.mdx @@ -46,8 +46,8 @@ To configure your webhook, go through the following steps: ```shell curl -H "content-type: application/json" \ - -H "authorization: token YOUR_SNYK_API_TOKEN" \ - "https://api.snyk.io/api/v1/orgs" | jq -r '.orgs[] | "\(.id)\t\(.name)"' + -H "authorization: token YOUR_SNYK_API_TOKEN" \ + "https://api.snyk.io/api/v1/orgs" | jq -r '.orgs[] | "\(.id)\t\(.name)"' ``` @@ -64,11 +64,11 @@ To configure your webhook, go through the following steps: ```shell curl -X POST -H "content-type: application/json" \ - -H "authorization: token " \ - --data '{"url": - "https://security-ingest-processor.service.newrelic.com/v1/security/webhooks/snyk?Api-Key=YOUR_NEW_RELIC_LICENSE_KEY", - "secret": "YOUR_SIGNING_SECRET"}' \ - "https://api.snyk.io/api/v1/org//webhooks" + -H "authorization: token " \ + --data '{"url": + "https://security-ingest-processor.service.newrelic.com/v1/security/webhooks/snyk?Api-Key=YOUR_NEW_RELIC_LICENSE_KEY", + "secret": "YOUR_SIGNING_SECRET"}' \ + "https://api.snyk.io/api/v1/org//webhooks" ``` @@ -79,16 +79,16 @@ To configure your webhook, go through the following steps: ```shell curl -H "content-type: application/json" \ - -H "authorization: token YOUR_SNYK_API_TOKEN" \ - "https://api.snyk.io/api/v1/org/YOUR_SNYK_ORG_ID/webhooks" + -H "authorization: token YOUR_SNYK_API_TOKEN" \ + "https://api.snyk.io/api/v1/org/YOUR_SNYK_ORG_ID/webhooks" ``` To test a webhook, copy the ID from the webhook you want to test, and run the following command: ```shell curl -X POST --data "" -H "content-type: application/json" \ - -H "authorization: token YOUR_SNYK_API_TOKEN" \ - "https://api.snyk.io/api/v1/org/YOUR_SNYK_ORG_ID/webhooks/YOUR_WEBHOOK_ID/ping" + -H "authorization: token YOUR_SNYK_API_TOKEN" \ + "https://api.snyk.io/api/v1/org/YOUR_SNYK_ORG_ID/webhooks/YOUR_WEBHOOK_ID/ping" ``` The command will return `OK` if you've set up the webhook correctly. @@ -166,7 +166,7 @@ When Snyk events are processed, they're stored in the **Vulnerab 2. Enter the following query: ```sql - FROM Vulnerability SELECT * where source = 'Snyk' since 7 days ago + FROM Vulnerability SELECT * WHERE source = 'Snyk' SINCE 7 days ago ``` Date: Tue, 24 Dec 2024 11:41:10 -0800 Subject: [PATCH 2/2] chore: capitalization --- .../docs/vulnerability-management/integrations/fossa.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/vulnerability-management/integrations/fossa.mdx b/src/content/docs/vulnerability-management/integrations/fossa.mdx index cf6c97dbd42..43495f36a25 100644 --- a/src/content/docs/vulnerability-management/integrations/fossa.mdx +++ b/src/content/docs/vulnerability-management/integrations/fossa.mdx @@ -85,5 +85,5 @@ When New Relic processes FOSSA events, they're stored in the **Vulnerability** t 2. Enter the following query: ```sql - FROM Vulnerability SELECT * where source = 'Fossa' since 7 days ago + FROM Vulnerability SELECT * WHERE source = 'Fossa' SINCE 7 days ago ```