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
2 changes: 1 addition & 1 deletion .github/workflows/deploy-integrations-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
uses: ./.github/actions/deploy-integrations
with:
environment: 'production'
extra_filter: "-F '!intercom' -F '!notion' -F '!calendly'"
extra_filter: "-F '!intercom' -F '!calendly'"
force: ${{ github.event.inputs.force == 'true' }}
sentry_auth_token: ${{ secrets.SENTRY_AUTH_TOKEN }}
token_cloud_ops_account: ${{ secrets.PRODUCTION_TOKEN_CLOUD_OPS_ACCOUNT }}
Expand Down
1 change: 1 addition & 0 deletions integrations/notion/definitions/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const configuration = {

export const identifier = {
extractScript: 'extract.vrl',
fallbackHandlerScript: 'fallbackHandler.vrl',
} as const satisfies sdk.IntegrationDefinitionProps['identifier']

export const configurations = {
Expand Down
16 changes: 16 additions & 0 deletions integrations/notion/fallbackHandler.vrl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
verification_token = parse_json!(.body).verification_token

# Notion sends a verification token in the body of the request to verify the
# webhook endpoint, but this request does not contain a workspace_id, so the
# extract.vrl script fails and the request does not get handled by the
# integration. To circumvent this, we log the verification token so that it
# can be manually retrieved from the logs.

msg, err = "Notion verification token received: " + verification_token

if err == null{
# The log() function is not available in wasm, so we have to get creative:
assert!(false, message: msg)
}

{}
Loading